org.apache.whirr.actions
Class ScriptBasedClusterAction

java.lang.Object
  extended by org.apache.whirr.ClusterAction
      extended by org.apache.whirr.actions.ScriptBasedClusterAction
Direct Known Subclasses:
BootstrapClusterAction, ByonClusterAction, ConfigureClusterAction

public abstract class ScriptBasedClusterAction
extends ClusterAction

A ClusterAction that provides the base functionality for running scripts on instances in the cluster.


Constructor Summary
protected ScriptBasedClusterAction(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute, Map<String,ClusterActionHandler> handlerMap)
           
 
Method Summary
protected abstract  void doAction(Map<InstanceTemplate,ClusterActionEvent> eventMap)
           
 Cluster execute(ClusterSpec clusterSpec, Cluster cluster)
           
 
Methods inherited from class org.apache.whirr.ClusterAction
getAction, getCompute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptBasedClusterAction

protected ScriptBasedClusterAction(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute,
                                   Map<String,ClusterActionHandler> handlerMap)
Method Detail

doAction

protected abstract void doAction(Map<InstanceTemplate,ClusterActionEvent> eventMap)
                          throws IOException,
                                 InterruptedException
Throws:
IOException
InterruptedException

execute

public Cluster execute(ClusterSpec clusterSpec,
                       Cluster cluster)
                throws IOException,
                       InterruptedException
Specified by:
execute in class ClusterAction
Throws:
IOException
InterruptedException


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