org.apache.whirr.service.puppet
Class PuppetClusterActionHandler

java.lang.Object
  extended by org.apache.whirr.service.ClusterActionHandlerSupport
      extended by org.apache.whirr.service.puppet.PuppetInstallClusterActionHandler
          extended by org.apache.whirr.service.puppet.PuppetClusterActionHandler
All Implemented Interfaces:
ClusterActionHandler

public class PuppetClusterActionHandler
extends PuppetInstallClusterActionHandler

Installs puppet. After this service is configured other services can use puppet to setup/start other services.


Field Summary
 
Fields inherited from class org.apache.whirr.service.puppet.PuppetInstallClusterActionHandler
PUPPET_INSTALL_ROLE
 
Fields inherited from interface org.apache.whirr.service.ClusterActionHandler
BOOTSTRAP_ACTION, CLEANUP_ACTION, CONFIGURE_ACTION, DESTROY_ACTION, START_ACTION, STOP_ACTION
 
Constructor Summary
PuppetClusterActionHandler(String role)
           
PuppetClusterActionHandler(String role, com.google.common.base.Function<ClusterActionEvent,StatementToInstallModule> getStatementToInstallModuleForAction)
           
 
Method Summary
protected  void beforeBootstrap(ClusterActionEvent event)
           
protected  void beforeConfigure(ClusterActionEvent event)
           
 String getRole()
           
 
Methods inherited from class org.apache.whirr.service.ClusterActionHandlerSupport
addRunUrl, addStatement, afterAction, afterBootstrap, afterCleanup, afterConfigure, afterDestroy, afterOtherAction, afterStart, afterStop, beforeAction, beforeCleanup, beforeDestroy, beforeOtherAction, beforeStart, beforeStop, equals, getCleanupFunction, getConfiguration, getConfiguration, getConfigureFunction, getFunctionName, getInstallFunction, getStartFunction, getStopFunction, hashCode, prepareRemoteFileUrl, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PuppetClusterActionHandler

public PuppetClusterActionHandler(String role)

PuppetClusterActionHandler

public PuppetClusterActionHandler(String role,
                                  com.google.common.base.Function<ClusterActionEvent,StatementToInstallModule> getStatementToInstallModuleForAction)
Parameters:
getStatementToInstallModuleForAction - allows you to override to facilitate testing
Method Detail

getRole

public String getRole()
Specified by:
getRole in interface ClusterActionHandler
Overrides:
getRole in class PuppetInstallClusterActionHandler

beforeBootstrap

protected void beforeBootstrap(ClusterActionEvent event)
                        throws IOException,
                               InterruptedException
Overrides:
beforeBootstrap in class PuppetInstallClusterActionHandler
Throws:
IOException
InterruptedException

beforeConfigure

protected void beforeConfigure(ClusterActionEvent event)
                        throws IOException,
                               InterruptedException
Overrides:
beforeConfigure in class ClusterActionHandlerSupport
Throws:
IOException
InterruptedException


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