org.apache.whirr.service
Class ClusterAction
java.lang.Object
org.apache.whirr.service.ClusterAction
- Direct Known Subclasses:
- DestroyClusterAction, ScriptBasedClusterAction
public abstract class ClusterAction
- extends Object
Performs an action on a cluster. Example actions include bootstrapping
(launching, creating), configuring, or running an arbitrary command on the
cluster.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterAction
public ClusterAction()
getAction
protected abstract String getAction()
execute
public abstract Cluster execute(ClusterSpec clusterSpec,
Cluster cluster)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.