org.apache.whirr.cli.command
Class RestartServicesCommand
java.lang.Object
org.apache.whirr.command.Command
org.apache.whirr.command.AbstractClusterCommand
org.apache.whirr.cli.command.RoleLifecycleCommand
org.apache.whirr.cli.command.RestartServicesCommand
public class RestartServicesCommand
- extends RoleLifecycleCommand
A command to restart the cluster services
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestartServicesCommand
public RestartServicesCommand()
throws IOException
- Throws:
IOException
RestartServicesCommand
public RestartServicesCommand(ClusterControllerFactory factory)
RestartServicesCommand
public RestartServicesCommand(ClusterControllerFactory factory,
ClusterStateStoreFactory stateStoreFactory)
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-2013 The Apache Software Foundation. All Rights Reserved.