@InterfaceAudience.Public @InterfaceStability.Evolving public final class ServiceOperations extends Object
Modifier and Type | Method and Description |
---|---|
static void |
stop(Service service)
Stop a service.
|
static Exception |
stopQuietly(org.slf4j.Logger log,
Service service)
Stop a service; if it is null do nothing.
|
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)
Do nothing if the service is null or not in a state in which it can be/needs to be stopped.
The service state is checked before the operation begins. This process is not thread safe.
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)
public static Exception stopQuietly(org.slf4j.Logger log, Service service)
log
- the log to warn atservice
- a service; may be nullstopQuietly(Service)
Copyright © 2021 Apache Software Foundation. All rights reserved.