org.apache.whirr.service.chef
Class ChefClusterActionHandler

java.lang.Object
  extended by org.apache.whirr.service.ClusterActionHandler
      extended by org.apache.whirr.service.ClusterActionHandlerSupport
          extended by org.apache.whirr.service.chef.ChefClusterActionHandler

public class ChefClusterActionHandler
extends ClusterActionHandlerSupport

Installs chef-solo provisioned services, chef itself and its dependencies.


Field Summary
static String CHEF_SLEEP_AFTER_RECIPE
           
static long CHEF_SLEEP_AFTER_RECIPE_DEFAULT
           
 
Fields inherited from class org.apache.whirr.service.ClusterActionHandler
BOOTSTRAP_ACTION, CONFIGURE_ACTION, DESTROY_ACTION
 
Constructor Summary
ChefClusterActionHandler(String role)
           
 
Method Summary
protected  void afterConfigure(ClusterActionEvent event)
           
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, afterDestroy, afterOtherAction, beforeAction, beforeDestroy, beforeOtherAction, getCleanupFunction, getConfiguration, getConfiguration, getConfigureFunction, getFunctionName, getInstallFunction, getStartFunction, getStopFunction, prepareRemoteFileUrl
 
Methods inherited from class org.apache.whirr.service.ClusterActionHandler
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CHEF_SLEEP_AFTER_RECIPE

public static final String CHEF_SLEEP_AFTER_RECIPE
See Also:
Constant Field Values

CHEF_SLEEP_AFTER_RECIPE_DEFAULT

public static final long CHEF_SLEEP_AFTER_RECIPE_DEFAULT
See Also:
Constant Field Values
Constructor Detail

ChefClusterActionHandler

public ChefClusterActionHandler(String role)
Method Detail

getRole

public String getRole()
Specified by:
getRole in class ClusterActionHandler

beforeBootstrap

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

beforeConfigure

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

afterConfigure

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


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