org.apache.whirr
Class ClusterAction
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterAction
protected ClusterAction(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute)
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.