|
||||||||||
| 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 |
resumeService(Service service)
Resumes the given service. |
static void |
startService(Object value)
Starts all of the given services |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void startService(Object value)
throws Exception
Exception
public static void startServices(Object... services)
throws Exception
Exception
public static void startServices(Collection<?> services)
throws Exception
Exception
public static void stopServices(Object... services)
throws Exception
Exception
public static void stopService(Object value)
throws Exception
Exception
public static void stopServices(Collection<?> services)
throws Exception
Exception
public static void stopAndShutdownServices(Object... services)
throws Exception
Exception
public static void stopAndShutdownService(Object value)
throws Exception
Exception
public static void stopAndShutdownServices(Collection<?> services)
throws Exception
Exception
public 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 service
Exception - is thrown if error occurred
public 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 stopable.
Otherwise the service is stopped.
service - the service
Exception - is thrown if error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||