JBoss Modular Service Kernel API 1.0.0.Beta6

org.jboss.msc.service
Class ServiceUtils

java.lang.Object
  extended by org.jboss.msc.service.ServiceUtils

public final class ServiceUtils
extends Object

A utility class for service actions.

Author:
David M. Lloyd

Method Summary
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

undeployAll

public static void undeployAll(Runnable completeTask,
                               ServiceController<?>... controllers)
Undeploy all the controllers and call the given runnable task when complete.

Parameters:
completeTask - the complete task
controllers - the controllers to undeploy

undeployAll

public static void undeployAll(Runnable completeTask,
                               List<ServiceController<?>> controllers)
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 task
controllers - the controllers to undeploy

JBoss Modular Service Kernel API 1.0.0.Beta6

Copyright © 2011 JBoss, a division of Red Hat, Inc.