Package org.jboss.msc.service
Class ServiceUtils
- java.lang.Object
-
- org.jboss.msc.service.ServiceUtils
-
@Deprecated public final class ServiceUtils extends Object
Deprecated.This class will be removed in a future release.A utility class for service actions.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
isServiceThread(Thread thread)
Deprecated.Determine whether the given thread is a service thread.static boolean
isServiceThread(Thread thread, ServiceContainer container)
Deprecated.Determine whether the given thread is a service thread which is associated with the given container.static void
undeployAll(Runnable completeTask, List<ServiceController<?>> controllers)
Deprecated.Undeploy all the controllers and call the given runnable task when complete.static void
undeployAll(Runnable completeTask, ServiceController<?>... controllers)
Deprecated.Undeploy all the controllers and call the given runnable task when complete.
-
-
-
Method Detail
-
undeployAll
public static void undeployAll(Runnable completeTask, ServiceController<?>... controllers)
Deprecated.Undeploy all the controllers and call the given runnable task when complete.- Parameters:
completeTask
- the complete taskcontrollers
- the controllers to undeploy
-
undeployAll
public static void undeployAll(Runnable completeTask, List<ServiceController<?>> controllers)
Deprecated.Undeploy all the controllers and call the given runnable task when complete. The given controllers list should not be modified while this method runs, or the results will be undefined.- Parameters:
completeTask
- the complete taskcontrollers
- the controllers to undeploy
-
isServiceThread
public static boolean isServiceThread(Thread thread)
Deprecated.Determine whether the given thread is a service thread.- Parameters:
thread
- the thread to test- Returns:
true
if it is a service thread,false
otherwise
-
isServiceThread
public static boolean isServiceThread(Thread thread, ServiceContainer container)
Deprecated.Determine whether the given thread is a service thread which is associated with the given container.- Parameters:
thread
- the thread to testcontainer
- the container to compare to- Returns:
true
if it is a service thread,false
otherwise
-
-