public interface ClusterActionHandler
Implementation note. ClusterActionHandler implementations are
discovered using a Service Provider Interface (SPI), described in
ServiceLoader.
| Modifier and Type | Field and Description |
|---|---|
static String |
BOOTSTRAP_ACTION |
static String |
CLEANUP_ACTION |
static String |
CONFIGURE_ACTION |
static String |
DESTROY_ACTION |
static String |
START_ACTION |
static String |
STOP_ACTION |
| Modifier and Type | Method and Description |
|---|---|
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() |
static final String BOOTSTRAP_ACTION
static final String CONFIGURE_ACTION
static final String START_ACTION
static final String STOP_ACTION
static final String CLEANUP_ACTION
static final String DESTROY_ACTION
String getRole()
void beforeAction(ClusterActionEvent event) throws IOException, InterruptedException
event - IOExceptionInterruptedExceptionvoid afterAction(ClusterActionEvent event) throws IOException, InterruptedException
event - IOExceptionInterruptedExceptionCopyright © 2010–2016 Cloudera. All rights reserved.