public class RunScriptCommand extends AbstractClusterCommand
factory, parser, stateStoreFactory| Constructor and Description |
|---|
RunScriptCommand() |
RunScriptCommand(ClusterControllerFactory factory) |
RunScriptCommand(ClusterControllerFactory factory,
ClusterStateStoreFactory stateStoreFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
printUsage(PrintStream stream)
Print a generic usage indication for commands
|
int |
run(InputStream in,
PrintStream out,
PrintStream err,
ClusterSpec clusterSpec,
String[] instances,
String[] roles,
String fileName) |
int |
run(InputStream in,
PrintStream out,
PrintStream err,
List<String> args) |
createClusterController, createClusterStateStore, getCluster, getClusterSpec, printErrorAndHelpHint, printProviderInfogetDescription, getNamepublic RunScriptCommand()
public RunScriptCommand(ClusterControllerFactory factory)
public RunScriptCommand(ClusterControllerFactory factory, ClusterStateStoreFactory stateStoreFactory)
public int run(InputStream in, PrintStream out, PrintStream err, List<String> args) throws Exception
public int run(InputStream in, PrintStream out, PrintStream err, ClusterSpec clusterSpec, String[] instances, String[] roles, String fileName) throws Exception
Exceptionpublic void printUsage(PrintStream stream) throws IOException
AbstractClusterCommandprintUsage in class AbstractClusterCommandIOExceptionCopyright © 2010–2016 Cloudera. All rights reserved.