org.apache.whirr.cluster.actions
Class ScriptBasedClusterAction
java.lang.Object
org.apache.whirr.service.ClusterAction
org.apache.whirr.cluster.actions.ScriptBasedClusterAction
- Direct Known Subclasses:
- BootstrapClusterAction, ConfigureClusterAction
public abstract class ScriptBasedClusterAction
- extends ClusterAction
A ClusterAction
that provides the base functionality for running
scripts on instances in the cluster.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptBasedClusterAction
protected ScriptBasedClusterAction(org.jclouds.compute.ComputeServiceContextFactory computeServiceContextFactory,
Map<String,ClusterActionHandler> handlerMap)
doAction
protected abstract void doAction(Map<ClusterSpec.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.