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.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractService
This is the base implementation class for services.
|
class |
CompositeService
Composition 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
Service to the list of services managed by this
CompositeService |
void |
ServiceOperations.ServiceListeners.notifyListeners(Service service)
Change to a new state and notify all listeners.
|
protected boolean |
CompositeService.removeService(Service service) |
void |
ServiceStateChangeListener.stateChanged(Service service)
Callback to notify of a state change.
|
void |
LoggingStateChangeListener.stateChanged(Service service)
Callback for a state change event: log it
|
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 |
LaunchableService
An interface which services can implement to have their
execution managed by the ServiceLauncher.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractLaunchableService
Subclass of
AbstractService that provides basic implementations
of the LaunchableService methods. |
Modifier and Type | Method and Description |
---|---|
Service |
ServiceLauncher.instantiateService(Configuration conf)
Instantiate the service defined in
serviceClassName . |
Constructor and Description |
---|
ServiceForcedShutdown(Service service,
int shutdownTimeMillis) |
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.