org.apache.whirr.service.hadoop
Class HadoopClusterActionHandler

java.lang.Object
  extended by org.apache.whirr.service.ClusterActionHandlerSupport
      extended by org.apache.whirr.service.hadoop.HadoopClusterActionHandler
All Implemented Interfaces:
ClusterActionHandler
Direct Known Subclasses:
HadoopDataNodeClusterActionHandler, HadoopNameNodeClusterActionHandler, HadoopTaskTrackerClusterActionHandler

public abstract class HadoopClusterActionHandler
extends ClusterActionHandlerSupport


Field Summary
 
Fields inherited from interface org.apache.whirr.service.ClusterActionHandler
BOOTSTRAP_ACTION, CLEANUP_ACTION, CONFIGURE_ACTION, DESTROY_ACTION, START_ACTION, STOP_ACTION
 
Constructor Summary
HadoopClusterActionHandler()
           
 
Method Summary
protected  void beforeBootstrap(ClusterActionEvent event)
           
protected  void beforeConfigure(ClusterActionEvent event)
           
protected  void doBeforeConfigure(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 hadoop defaults properties.
protected  String getConfigureFunction(org.apache.commons.configuration.Configuration config)
           
protected  Map<String,String> getDeviceMappings(ClusterActionEvent event)
           
protected  String getInstallFunction(org.apache.commons.configuration.Configuration config)
           
 
Methods inherited from class org.apache.whirr.service.ClusterActionHandlerSupport
addClusterToEtcHostsAndFirewall, 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, handleFirewallRules, hashCode, prepareRemoteFileUrl, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.whirr.service.ClusterActionHandler
getRole
 

Constructor Detail

HadoopClusterActionHandler

public HadoopClusterActionHandler()
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 hadoop defaults properties.

Throws:
IOException

getInstallFunction

protected String getInstallFunction(org.apache.commons.configuration.Configuration config)

getConfigureFunction

protected String getConfigureFunction(org.apache.commons.configuration.Configuration config)

beforeBootstrap

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

getDeviceMappings

protected Map<String,String> getDeviceMappings(ClusterActionEvent event)

beforeConfigure

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

doBeforeConfigure

protected void doBeforeConfigure(ClusterActionEvent event)
                          throws IOException
Throws:
IOException


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