|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
|---|
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
| Method Detail |
|---|
String getRole()
void beforeAction(ClusterActionEvent event)
throws IOException,
InterruptedException
event -
IOException
InterruptedException
void afterAction(ClusterActionEvent event)
throws IOException,
InterruptedException
event -
IOException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||