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
protected ClusterAction(org.jclouds.compute.ComputeServiceContextFactory computeServiceContextFactory)
           
 
Method Summary
abstract  Cluster execute(ClusterSpec clusterSpec, Cluster cluster)
           
protected abstract  String getAction()
           
protected  org.jclouds.compute.ComputeServiceContextFactory getComputeServiceContextFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterAction

protected ClusterAction(org.jclouds.compute.ComputeServiceContextFactory computeServiceContextFactory)
Method Detail

getComputeServiceContextFactory

protected org.jclouds.compute.ComputeServiceContextFactory getComputeServiceContextFactory()

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.