| Package | Description |
|---|---|
| org.apache.hadoop.service |
Support for services.
|
| 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 | Description |
|---|---|---|
class |
AbstractService |
This is the base implementation class for services.
|
class |
CompositeService |
Composition of services.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<Service> |
CompositeService.getServices() |
Get a cloned list of services
|
| Modifier and Type | Method | 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 |
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 java.lang.Exception |
ServiceOperations.stopQuietly(org.apache.commons.logging.Log log,
Service service) |
Deprecated.
to be removed with 3.4.0.
|
static java.lang.Exception |
ServiceOperations.stopQuietly(Service service) |
Stop a service; if it is null do nothing.
|
static java.lang.Exception |
ServiceOperations.stopQuietly(org.slf4j.Logger log,
Service service) |
Stop a service; if it is null do nothing.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
ServiceLauncher<S extends Service> |
A class to launch any YARN service by name.
|
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
LaunchableService |
An interface which services can implement to have their
execution managed by the ServiceLauncher.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
AbstractLaunchableService |
Subclass of
AbstractService that provides basic implementations
of the LaunchableService methods. |
| Modifier and Type | Method | Description |
|---|---|---|
Service |
ServiceLauncher.instantiateService(Configuration conf) |
| Constructor | Description |
|---|---|
ServiceForcedShutdown(Service service,
int shutdownTimeMillis) |
|
ServiceShutdownHook(Service service) |
Create an instance.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
JvmPauseMonitor |
Class which sets up a simple thread which runs in a loop sleeping
for a short interval of time.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.