org.apache.whirr.cli.command
Class RunScriptCommand
java.lang.Object
org.apache.whirr.command.Command
org.apache.whirr.command.AbstractClusterCommand
org.apache.whirr.cli.command.RunScriptCommand
public class RunScriptCommand
- extends AbstractClusterCommand
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunScriptCommand
public RunScriptCommand()
RunScriptCommand
public RunScriptCommand(ClusterControllerFactory factory)
RunScriptCommand
public RunScriptCommand(ClusterControllerFactory factory,
ClusterStateStoreFactory stateStoreFactory)
run
public int run(InputStream in,
PrintStream out,
PrintStream err,
List<String> args)
throws Exception
- Specified by:
run
in class Command
- Throws:
Exception
run
public int run(InputStream in,
PrintStream out,
PrintStream err,
ClusterSpec clusterSpec,
String[] instances,
String[] roles,
String fileName)
throws Exception
- Throws:
Exception
printUsage
public void printUsage(PrintStream stream)
throws IOException
- Description copied from class:
AbstractClusterCommand
- Print a generic usage indication for commands
- Overrides:
printUsage
in class AbstractClusterCommand
- Throws:
IOException
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.