@InterfaceAudience.Public @InterfaceStability.Evolving public final class ServiceOperations extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServiceOperations.ServiceListeners
Class to manage a list of
ServiceStateChangeListener instances,
including a notification loop that is robust against changes to the list
during the notification process. |
Modifier and Type | Method and Description |
---|---|
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.
|
public static void stop(Service service)
service
- a service or nullpublic static Exception stopQuietly(Service service)
service
- a service; may be nullpublic static Exception stopQuietly(org.apache.commons.logging.Log log, Service service)
log
- the log to warn atservice
- a service; may be nullstopQuietly(Service)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.