org.apache.whirr.service.hbase
Class BasicServerClusterActionHandler

java.lang.Object
  extended by org.apache.whirr.service.ClusterActionHandlerSupport
      extended by org.apache.whirr.service.hbase.HBaseClusterActionHandler
          extended by org.apache.whirr.service.hbase.BasicServerClusterActionHandler
All Implemented Interfaces:
ClusterActionHandler
Direct Known Subclasses:
HBaseAvroServerClusterActionHandler, HBaseRestServerClusterActionHandler, HBaseThriftServerClusterActionHandler

public class BasicServerClusterActionHandler
extends HBaseClusterActionHandler

Provides a base class for servers like REST or Avro.


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
BasicServerClusterActionHandler(String role, int port, String configKeyPort)
           
 
Method Summary
protected  void beforeBootstrap(ClusterActionEvent event)
           
protected  void beforeConfigure(ClusterActionEvent event)
           
 String getRole()
           
 
Methods inherited from class org.apache.whirr.service.hbase.HBaseClusterActionHandler
getConfiguration, getConfigureFunction, getInstallFunction, getMetricsTemplate
 
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

BasicServerClusterActionHandler

public BasicServerClusterActionHandler(String role,
                                       int port,
                                       String configKeyPort)
Method Detail

getRole

public String getRole()

beforeBootstrap

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

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.