|
JBoss Modular Service Kernel API 1.0.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.msc.service.ServiceUtils
public final class ServiceUtils
A utility class for service actions.
Method Summary | |
---|---|
static boolean |
isServiceThread(Thread thread)
Determine whether the given thread is a service thread. |
static boolean |
isServiceThread(Thread thread,
ServiceContainer container)
Determine whether the given thread is a service thread which is associated with the given container. |
static void |
undeployAll(Runnable completeTask,
List<ServiceController<?>> controllers)
Undeploy all the controllers and call the given runnable task when complete. |
static void |
undeployAll(Runnable completeTask,
ServiceController<?>... controllers)
Undeploy all the controllers and call the given runnable task when complete. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void undeployAll(Runnable completeTask, ServiceController<?>... controllers)
completeTask
- the complete taskcontrollers
- the controllers to undeploypublic static void undeployAll(Runnable completeTask, List<ServiceController<?>> controllers)
completeTask
- the complete taskcontrollers
- the controllers to undeploypublic static boolean isServiceThread(Thread thread)
thread
- the thread to test
true
if it is a service thread, false
otherwisepublic static boolean isServiceThread(Thread thread, ServiceContainer container)
thread
- the thread to testcontainer
- the container to compare to
true
if it is a service thread, false
otherwise
|
JBoss Modular Service Kernel API 1.0.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |