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
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 ServiceFactory factory
parser
protected joptsimple.OptionParser parser
AbstractClusterSpecCommand
public AbstractClusterSpecCommand(String name,
String description,
ServiceFactory factory)
getClusterSpec
protected ClusterSpec getClusterSpec(joptsimple.OptionSet optionSet)
throws org.apache.commons.configuration.ConfigurationException
- Throws:
org.apache.commons.configuration.ConfigurationException
createService
protected Service createService(String serviceName)
- Create the specified service
- Parameters:
serviceName
-
- Returns:
-
- Throws:
IllegalArgumentException
- if serviceName is not found
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.