| Modifier and Type | Method and Description |
|---|---|
static Set<Service> |
getChildServices(Service service)
Gather all child services by navigating the service to recursively gather all child services.
|
static Set<Service> |
getChildServices(Service service,
boolean includeErrorHandler)
Gather all child services by navigating the service to recursively gather all child services.
|
static boolean |
isStarted(Object value)
Is the given service starting or started?
|
static boolean |
isStopped(Object value)
Is the given service stopping or stopped?
|
static boolean |
isSuspended(Object value)
Is the given service suspended
|
static boolean |
resumeService(Service service)
Resumes the given service.
|
static void |
resumeServices(Collection<?> services) |
static void |
startService(Object value)
Starts all of the given services
|
static void |
startService(Service service)
Start the given service
|
static void |
startServices(Collection<?> services)
Starts all of the given services
|
static void |
startServices(Object... services)
Starts all of the given services
|
static void |
stopAndShutdownService(Object value)
Stops and shutdowns all of the given services, throwing the first exception caught
|
static void |
stopAndShutdownServices(Collection<?> services)
Stops and shutdowns all of the given services, throwing the first exception caught
|
static void |
stopAndShutdownServices(Object... services)
Stops and shutdowns all of the given services, throwing the first exception caught
|
static void |
stopService(Object value)
Stops all of the given services, throwing the first exception caught
|
static void |
stopServices(Collection<?> services)
Stops all of the given services, throwing the first exception caught
|
static void |
stopServices(Object... services)
Stops all of the given services, throwing the first exception caught
|
static boolean |
suspendService(Service service)
Suspends the given service.
|
static void |
suspendServices(Collection<?> services) |
public static void startService(Object value) throws Exception
Exceptionpublic static void startService(Service service) throws Exception
Exceptionpublic static void startServices(Object... services) throws Exception
Exceptionpublic static void startServices(Collection<?> services) throws Exception
Exceptionpublic static void stopServices(Object... services) throws Exception
Exceptionpublic static void stopService(Object value) throws Exception
Exceptionpublic static void stopServices(Collection<?> services) throws Exception
Exceptionpublic static void stopAndShutdownServices(Object... services) throws Exception
Exceptionpublic static void stopAndShutdownService(Object value) throws Exception
Exceptionpublic static void stopAndShutdownServices(Collection<?> services) throws Exception
Exceptionpublic static void resumeServices(Collection<?> services) throws Exception
Exceptionpublic static boolean resumeService(Service service) throws Exception
SuspendableService then the resume
operation is only invoked if the service is suspended.
If the service is a ServiceSupport then the start
operation is only invoked if the service is startable.
Otherwise the service is started.service - the serviceException - is thrown if error occurredpublic static void suspendServices(Collection<?> services) throws Exception
Exceptionpublic static boolean suspendService(Service service) throws Exception
SuspendableService then the suspend
operation is only invoked if the service is not suspended.
If the service is a ServiceSupport then the stop
operation is only invoked if the service is stoppable.
Otherwise the service is stopped.service - the serviceException - is thrown if error occurredpublic static boolean isStopped(Object value)
public static boolean isStarted(Object value)
public static boolean isSuspended(Object value)
public static Set<Service> getChildServices(Service service)
service - the servicepublic static Set<Service> getChildServices(Service service, boolean includeErrorHandler)
service - the serviceincludeErrorHandler - whether to include error handlersApache Camel