org.apache.whirr.cli.command
Class StopServicesCommand

java.lang.Object
  extended by org.apache.whirr.command.Command
      extended by org.apache.whirr.command.AbstractClusterCommand
          extended by org.apache.whirr.cli.command.RoleLifecycleCommand
              extended by org.apache.whirr.cli.command.StopServicesCommand

public class StopServicesCommand
extends RoleLifecycleCommand

A command to stop the cluster services


Field Summary
 
Fields inherited from class org.apache.whirr.command.AbstractClusterCommand
factory, parser, stateStoreFactory
 
Constructor Summary
StopServicesCommand()
           
StopServicesCommand(ClusterControllerFactory factory)
           
StopServicesCommand(ClusterControllerFactory factory, ClusterStateStoreFactory stateStoreFactory)
           
 
Method Summary
 int runLifecycleStep(ClusterSpec clusterSpec, ClusterController controller, joptsimple.OptionSet optionSet)
          Implement this method to trigger the relevant role lifecycle action
 
Methods inherited from class org.apache.whirr.cli.command.RoleLifecycleCommand
getTargetInstanceIdsOrEmpty, getTargetRolesOrEmpty, printUsage, run
 
Methods inherited from class org.apache.whirr.command.AbstractClusterCommand
createClusterController, createClusterStateStore, getCluster, getClusterSpec, printErrorAndHelpHint, printProviderInfo
 
Methods inherited from class org.apache.whirr.command.Command
getDescription, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopServicesCommand

public StopServicesCommand()
                    throws IOException
Throws:
IOException

StopServicesCommand

public StopServicesCommand(ClusterControllerFactory factory)

StopServicesCommand

public StopServicesCommand(ClusterControllerFactory factory,
                           ClusterStateStoreFactory stateStoreFactory)
Method Detail

runLifecycleStep

public int runLifecycleStep(ClusterSpec clusterSpec,
                            ClusterController controller,
                            joptsimple.OptionSet optionSet)
                     throws IOException,
                            InterruptedException
Description copied from class: RoleLifecycleCommand
Implement this method to trigger the relevant role lifecycle action

Specified by:
runLifecycleStep in class RoleLifecycleCommand
Throws:
IOException
InterruptedException


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.