org.apache.whirr.actions
Class ConfigureServicesAction

java.lang.Object
  extended by org.apache.whirr.ClusterAction
      extended by org.apache.whirr.actions.ScriptBasedClusterAction
          extended by org.apache.whirr.actions.ConfigureServicesAction

public class ConfigureServicesAction
extends ScriptBasedClusterAction

A ClusterAction for running a configuration script on instances in the cluster after it has been bootstrapped.


Constructor Summary
ConfigureServicesAction(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute, com.google.common.cache.LoadingCache<String,ClusterActionHandler> handlerMap)
           
ConfigureServicesAction(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute, com.google.common.cache.LoadingCache<String,ClusterActionHandler> handlerMap, Set<String> targetRoles, Set<String> targetInstanceIds)
           
 
Method Summary
protected  void eventSpecificActions(InstanceTemplate instanceTemplate, ClusterActionEvent event)
          Apply the firewall rules specified via configuration.
protected  String getAction()
           
 
Methods inherited from class org.apache.whirr.actions.ScriptBasedClusterAction
doAction, execute, instanceIsNotInTarget, postRunScriptsActions, roleIsInTarget, runScripts, runStatementOnInstanceInCluster, shouldIgnoreInstanceTemplate
 
Methods inherited from class org.apache.whirr.ClusterAction
getCompute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigureServicesAction

public ConfigureServicesAction(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute,
                               com.google.common.cache.LoadingCache<String,ClusterActionHandler> handlerMap)

ConfigureServicesAction

public ConfigureServicesAction(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute,
                               com.google.common.cache.LoadingCache<String,ClusterActionHandler> handlerMap,
                               Set<String> targetRoles,
                               Set<String> targetInstanceIds)
Method Detail

getAction

protected String getAction()
Specified by:
getAction in class ClusterAction

eventSpecificActions

protected void eventSpecificActions(InstanceTemplate instanceTemplate,
                                    ClusterActionEvent event)
                             throws IOException
Apply the firewall rules specified via configuration.

Overrides:
eventSpecificActions in class ScriptBasedClusterAction
Throws:
IOException


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