|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.service.ServiceOperations
@InterfaceAudience.Public @InterfaceStability.Evolving public final class ServiceOperations
This class contains a set of methods to work with services, especially to walk them through their lifecycle.
Method Summary | |
---|---|
static void |
stop(Service service)
Stop a service. |
static Exception |
stopQuietly(org.apache.commons.logging.Log log,
Service service)
Stop a service; if it is null do nothing. |
static Exception |
stopQuietly(Service service)
Stop a service; if it is null do nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void stop(Service service)
service
- a service or nullpublic static Exception stopQuietly(Service service)
service
- a service; may be null
public static Exception stopQuietly(org.apache.commons.logging.Log log, Service service)
log
- the log to warn atservice
- a service; may be null
stopQuietly(Service)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |