org.apache.whirr.actions
Class ConfigureServicesAction
java.lang.Object
org.apache.whirr.ClusterAction
org.apache.whirr.actions.ScriptBasedClusterAction
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.