@Public
@Evolving
public final class ServiceOperations
extends java.lang.Object
| Modifier and Type | Class | 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 | Description |
|---|---|---|
static void |
stop(Service service) |
Stop a service.
|
static java.lang.Exception |
stopQuietly(org.apache.commons.logging.Log log,
Service service) |
Deprecated.
to be removed with 3.4.0.
|
static java.lang.Exception |
stopQuietly(Service service) |
Stop a service; if it is null do nothing.
|
static java.lang.Exception |
stopQuietly(org.slf4j.Logger log,
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 java.lang.Exception stopQuietly(Service service)
service - a service; may be null@Deprecated
public static java.lang.Exception stopQuietly(org.apache.commons.logging.Log log,
Service service)
stopQuietly(Logger, Service) instead.log - the log to warn atservice - a service; may be nullpublic static java.lang.Exception stopQuietly(org.slf4j.Logger log,
Service service)
log - the log to warn atservice - a service; may be nullstopQuietly(Service)Copyright © 2008–2025 Apache Software Foundation. All rights reserved.