| Package | Description | 
|---|---|
| org.apache.hadoop.service | |
| org.apache.hadoop.service.launcher | This package contains classes, interfaces and exceptions to launch
 YARN services from the command line. | 
| org.apache.hadoop.util | Common utilities. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractServiceThis is the base implementation class for services. | 
| class  | CompositeServiceComposition of services. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<Service> | CompositeService. getServices()Get a cloned list of services | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | CompositeService. addService(Service service)Add the passed  Serviceto the list of services managed by thisCompositeService | 
| void | ServiceOperations.ServiceListeners. notifyListeners(Service service)Change to a new state and notify all listeners. | 
| protected boolean | CompositeService. removeService(Service service) | 
| void | LoggingStateChangeListener. stateChanged(Service service)Callback for a state change event: log it | 
| void | ServiceStateChangeListener. stateChanged(Service service)Callback to notify of a state change. | 
| static void | ServiceOperations. stop(Service service)Stop a service. | 
| static Exception | ServiceOperations. stopQuietly(org.slf4j.Logger log,
           Service service)Stop a service; if it is null do nothing. | 
| static Exception | ServiceOperations. stopQuietly(org.apache.commons.logging.Log log,
           Service service)Stop a service; if it is null do nothing. | 
| static Exception | ServiceOperations. stopQuietly(Service service)Stop a service; if it is null do nothing. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ServiceLauncher<S extends Service>A class to launch any YARN service by name. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | LaunchableServiceAn interface which services can implement to have their
 execution managed by the ServiceLauncher. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractLaunchableServiceSubclass of  AbstractServicethat provides basic implementations
 of theLaunchableServicemethods. | 
| Modifier and Type | Method and Description | 
|---|---|
| Service | ServiceLauncher. instantiateService(Configuration conf)Instantiate the service defined in  serviceClassName. | 
| Constructor and Description | 
|---|
| InterruptEscalator.ServiceForcedShutdown(Service service,
                                        int shutdownTimeMillis) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | NodeHealthScriptRunnerThe class which provides functionality of checking the health of the node
 using the configured node health script and reporting back to the service
 for which the health checker has been asked to report. | 
Copyright © 2018 Apache Software Foundation. All Rights Reserved.