org.apache.whirr.command
Class AbstractClusterCommand
java.lang.Object
org.apache.whirr.command.Command
org.apache.whirr.command.AbstractClusterCommand
- Direct Known Subclasses:
- DestroyClusterCommand, DestroyInstanceCommand, LaunchClusterCommand, ListClusterCommand, ListProvidersCommand, RunScriptCommand
public abstract class AbstractClusterCommand
- 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
AbstractClusterCommand
public AbstractClusterCommand(String name,
String description,
ClusterControllerFactory factory)
AbstractClusterCommand
public AbstractClusterCommand(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.