org.apache.whirr.service
Class ClusterAction

java.lang.Object
  extended by 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.


Constructor Summary
ClusterAction()
           
 
Method Summary
abstract  Cluster execute(ClusterSpec clusterSpec, Cluster cluster)
           
protected abstract  String getAction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterAction

public ClusterAction()
Method Detail

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.