org.apache.whirr
Class ClusterAction

java.lang.Object
  extended by org.apache.whirr.ClusterAction
Direct Known Subclasses:
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(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute)
           
 
Method Summary
abstract  Cluster execute(ClusterSpec clusterSpec, Cluster cluster)
           
protected abstract  String getAction()
           
 com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterAction

protected ClusterAction(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute)
Method Detail

getCompute

public com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute()

getAction

protected abstract String getAction()

execute

public abstract Cluster execute(ClusterSpec clusterSpec,
                                Cluster cluster)
                         throws IOException,
                                InterruptedException
Throws:
IOException
InterruptedException


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.