|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.whirr.service.ClusterActionHandlerSupport
org.apache.whirr.service.puppet.PuppetInstallClusterActionHandler
org.apache.whirr.service.puppet.PuppetClusterActionHandler
public class PuppetClusterActionHandler
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<org.apache.whirr.service.ClusterActionEvent,StatementToInstallModule> getStatementToInstallModuleForAction)
|
|
| Method Summary | |
|---|---|
protected void |
beforeBootstrap(org.apache.whirr.service.ClusterActionEvent event)
|
protected void |
beforeConfigure(org.apache.whirr.service.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 |
|---|
public PuppetClusterActionHandler(String role)
public PuppetClusterActionHandler(String role,
com.google.common.base.Function<org.apache.whirr.service.ClusterActionEvent,StatementToInstallModule> getStatementToInstallModuleForAction)
getStatementToInstallModuleForAction - allows you to override to facilitate testing| Method Detail |
|---|
public String getRole()
getRole in interface org.apache.whirr.service.ClusterActionHandlergetRole in class PuppetInstallClusterActionHandler
protected void beforeBootstrap(org.apache.whirr.service.ClusterActionEvent event)
throws IOException,
InterruptedException
beforeBootstrap in class PuppetInstallClusterActionHandlerIOException
InterruptedException
protected void beforeConfigure(org.apache.whirr.service.ClusterActionEvent event)
throws IOException,
InterruptedException
beforeConfigure in class org.apache.whirr.service.ClusterActionHandlerSupportIOException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||