public class ConfigureServicesAction extends ScriptBasedClusterAction
ClusterAction for running a configuration script on instances
in the cluster after it has been bootstrapped.| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
eventSpecificActions(InstanceTemplate instanceTemplate,
ClusterActionEvent event)
Apply the firewall rules specified via configuration.
|
protected String |
getAction() |
doAction, execute, instanceIsNotInTarget, postRunScriptsActions, roleIsInTarget, runScripts, runStatementOnInstanceInCluster, shouldIgnoreInstanceTemplategetComputepublic ConfigureServicesAction(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute, com.google.common.cache.LoadingCache<String,ClusterActionHandler> handlerMap)
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)
protected String getAction()
getAction in class ClusterActionprotected void eventSpecificActions(InstanceTemplate instanceTemplate, ClusterActionEvent event) throws IOException
eventSpecificActions in class ScriptBasedClusterActionIOExceptionCopyright © 2010–2016 Cloudera. All rights reserved.