org.apache.whirr.cli.command
Class AbstractClusterSpecCommand
java.lang.Object
org.apache.whirr.cli.Command
org.apache.whirr.cli.command.AbstractClusterSpecCommand
- Direct Known Subclasses:
- DestroyClusterCommand, DestroyInstanceCommand, LaunchClusterCommand, ListClusterCommand, RunScriptCommand
public abstract class AbstractClusterSpecCommand
- extends Command
An abstract command for interacting with clusters.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factory
protected ClusterControllerFactory factory
stateStoreFactory
protected ClusterStateStoreFactory stateStoreFactory
parser
protected joptsimple.OptionParser parser
AbstractClusterSpecCommand
public AbstractClusterSpecCommand(String name,
String description,
ClusterControllerFactory factory)
AbstractClusterSpecCommand
public AbstractClusterSpecCommand(String name,
String description,
ClusterControllerFactory factory,
ClusterStateStoreFactory stateStoreFactory)
getClusterSpec
protected ClusterSpec getClusterSpec(joptsimple.OptionSet optionSet)
throws org.apache.commons.configuration.ConfigurationException
- Throws:
org.apache.commons.configuration.ConfigurationException
createClusterController
protected ClusterController createClusterController(String serviceName)
- Create the specified service
createClusterStateStore
protected ClusterStateStore createClusterStateStore(ClusterSpec spec)
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.