|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.util.ServiceHelper
public final class ServiceHelper
A collection of helper methods for working with Service
objects
Method Summary | |
---|---|
static boolean |
isStarted(java.lang.Object value)
Is the given service starting or started? |
static boolean |
isStopped(java.lang.Object value)
Is the given service stopping or stopped? |
static boolean |
resumeService(java.lang.Object service)
Resumes the given service. |
static void |
resumeServices(java.util.Collection<?> services)
|
static void |
startService(java.lang.Object value)
Starts all of the given services |
static void |
startServices(java.util.Collection<?> services)
Starts all of the given services |
static void |
startServices(java.lang.Object... services)
Starts all of the given services |
static void |
stopAndShutdownService(java.lang.Object value)
Stops and shutdowns all of the given services, throwing the first exception caught |
static void |
stopAndShutdownServices(java.util.Collection<?> services)
Stops and shutdowns all of the given services, throwing the first exception caught |
static void |
stopAndShutdownServices(java.lang.Object... services)
Stops and shutdowns all of the given services, throwing the first exception caught |
static void |
stopService(java.lang.Object value)
Stops all of the given services, throwing the first exception caught |
static void |
stopServices(java.util.Collection<?> services)
Stops all of the given services, throwing the first exception caught |
static void |
stopServices(java.lang.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(java.util.Collection<?> services)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void startService(java.lang.Object value) throws java.lang.Exception
java.lang.Exception
public static void startServices(java.lang.Object... services) throws java.lang.Exception
java.lang.Exception
public static void startServices(java.util.Collection<?> services) throws java.lang.Exception
java.lang.Exception
public static void stopServices(java.lang.Object... services) throws java.lang.Exception
java.lang.Exception
public static void stopService(java.lang.Object value) throws java.lang.Exception
java.lang.Exception
public static void stopServices(java.util.Collection<?> services) throws java.lang.Exception
java.lang.Exception
public static void stopAndShutdownServices(java.lang.Object... services) throws java.lang.Exception
java.lang.Exception
public static void stopAndShutdownService(java.lang.Object value) throws java.lang.Exception
java.lang.Exception
public static void stopAndShutdownServices(java.util.Collection<?> services) throws java.lang.Exception
java.lang.Exception
public static void resumeServices(java.util.Collection<?> services) throws java.lang.Exception
java.lang.Exception
public static boolean resumeService(java.lang.Object service) throws java.lang.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 service
java.lang.Exception
- is thrown if error occurredpublic static void suspendServices(java.util.Collection<?> services) throws java.lang.Exception
java.lang.Exception
public static boolean suspendService(Service service) throws java.lang.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 service
java.lang.Exception
- is thrown if error occurredpublic static boolean isStopped(java.lang.Object value)
public static boolean isStarted(java.lang.Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |