org.apache.whirr.service.hama
Class HamaClusterActionHandler

java.lang.Object
  extended by org.apache.whirr.service.ClusterActionHandler
      extended by org.apache.whirr.service.ClusterActionHandlerSupport
          extended by org.apache.whirr.service.hama.HamaClusterActionHandler
Direct Known Subclasses:
HamaGroomServerClusterActionHandler, HamaMasterClusterActionHandler

public abstract class HamaClusterActionHandler
extends ClusterActionHandlerSupport

Base class for Hama service handlers.


Field Summary
 
Fields inherited from class org.apache.whirr.service.ClusterActionHandler
BOOTSTRAP_ACTION, CONFIGURE_ACTION, DESTROY_ACTION
 
Constructor Summary
HamaClusterActionHandler()
           
 
Method Summary
protected  void beforeBootstrap(ClusterActionEvent event)
           
protected  org.apache.commons.configuration.Configuration getConfiguration(ClusterSpec clusterSpec)
          Returns a composite configuration that is made up from the global configuration coming from the Whirr core with a hama defaults properties.
 
Methods inherited from class org.apache.whirr.service.ClusterActionHandlerSupport
addRunUrl, addStatement, afterAction, afterBootstrap, afterConfigure, afterDestroy, afterOtherAction, beforeAction, beforeConfigure, beforeDestroy, beforeOtherAction, getCleanupFunction, getConfiguration, getConfiguration, getConfigureFunction, getFunctionName, getInstallFunction, getStartFunction, getStopFunction, prepareRemoteFileUrl
 
Methods inherited from class org.apache.whirr.service.ClusterActionHandler
equals, getRole, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HamaClusterActionHandler

public HamaClusterActionHandler()
Method Detail

getConfiguration

protected org.apache.commons.configuration.Configuration getConfiguration(ClusterSpec clusterSpec)
                                                                   throws IOException
Returns a composite configuration that is made up from the global configuration coming from the Whirr core with a hama defaults properties.

Throws:
IOException

beforeBootstrap

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


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