Package org.apache.hadoop.service
@Public
package org.apache.hadoop.service
Support for services.
-
ClassDescriptionThis is the base implementation class for services.Composition of services.org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHookJVM Shutdown hook for CompositeService which will stop the give CompositeService gracefully in case of JVM shutdown.A serializable lifecycle event: the time a state transition occurred, and what state was entered.This is a state change listener that logs events at INFO levelService LifeCycle.Service statesThis class contains a set of methods to work with services, especially to walk them through their lifecycle.org.apache.hadoop.service.ServiceOperations.ServiceListenersClass to manage a list of
ServiceStateChangeListenerinstances, including a notification loop that is robust against changes to the list during the notification process.Interface to notify state changes of a service.Exception that can be raised on state change operations, whose exit code can be explicitly set, determined from that of any nested cause, or a default value ofLauncherExitCodes.EXIT_SERVICE_LIFECYCLE_EXCEPTION.Implements the service state model.