org.apache.whirr.service
Interface ClusterActionHandler

All Known Implementing Classes:
BasicServerClusterActionHandler, CassandraClusterActionHandler, ChefClusterActionHandler, ClusterActionHandlerSupport, ElasticSearchHandler, GangliaMetadClusterActionHandler, GangliaMonitorClusterActionHandler, HadoopClusterActionHandler, HadoopDataNodeClusterActionHandler, HadoopJobTrackerClusterActionHandler, HadoopNameNodeClusterActionHandler, HadoopTaskTrackerClusterActionHandler, HamaClusterActionHandler, HamaGroomServerClusterActionHandler, HamaMasterClusterActionHandler, HBaseAvroServerClusterActionHandler, HBaseClusterActionHandler, HBaseMasterClusterActionHandler, HBaseRegionServerClusterActionHandler, HBaseRestServerClusterActionHandler, HBaseThriftServerClusterActionHandler, MahoutClientClusterActionHandler, MapReduceJobHistoryServerHandler, NoopClusterActionHandler, PigClientClusterActionHandler, PuppetClusterActionHandler, PuppetInstallClusterActionHandler, SolrClusterActionHandler, YarnHandler, YarnNodeManagerHandler, YarnResourceManagerHandler, ZooKeeperClusterActionHandler

public interface ClusterActionHandler

A callback interface for cluster actions that apply to instances in a given role.

Implementation note. ClusterActionHandler implementations are discovered using a Service Provider Interface (SPI), described in ServiceLoader.


Field Summary
static String BOOTSTRAP_ACTION
           
static String CLEANUP_ACTION
           
static String CONFIGURE_ACTION
           
static String DESTROY_ACTION
           
static String START_ACTION
           
static String STOP_ACTION
           
 
Method Summary
 void afterAction(ClusterActionEvent event)
          Called after the action has been performed.
 void beforeAction(ClusterActionEvent event)
          Called before the action is performed, giving the implementation an opportunity to specify scripts that should be run as a part of this action.
 String getRole()
           
 

Field Detail

BOOTSTRAP_ACTION

static final String BOOTSTRAP_ACTION
See Also:
Constant Field Values

CONFIGURE_ACTION

static final String CONFIGURE_ACTION
See Also:
Constant Field Values

START_ACTION

static final String START_ACTION
See Also:
Constant Field Values

STOP_ACTION

static final String STOP_ACTION
See Also:
Constant Field Values

CLEANUP_ACTION

static final String CLEANUP_ACTION
See Also:
Constant Field Values

DESTROY_ACTION

static final String DESTROY_ACTION
See Also:
Constant Field Values
Method Detail

getRole

String getRole()

beforeAction

void beforeAction(ClusterActionEvent event)
                  throws IOException,
                         InterruptedException
Called before the action is performed, giving the implementation an opportunity to specify scripts that should be run as a part of this action.

Parameters:
event -
Throws:
IOException
InterruptedException

afterAction

void afterAction(ClusterActionEvent event)
                 throws IOException,
                        InterruptedException
Called after the action has been performed.

Parameters:
event -
Throws:
IOException
InterruptedException


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