org.apache.whirr.service
Class ClusterActionHandlerSupport
java.lang.Object
org.apache.whirr.service.ClusterActionHandler
org.apache.whirr.service.ClusterActionHandlerSupport
- Direct Known Subclasses:
- CassandraClusterActionHandler, HadoopDataNodeClusterActionHandler, HadoopJobTrackerClusterActionHandler, HadoopNameNodeClusterActionHandler, HadoopTaskTrackerClusterActionHandler, HBaseClusterActionHandler, ZooKeeperClusterActionHandler
public abstract class ClusterActionHandlerSupport
- extends ClusterActionHandler
This is a utility class to make it easier to implement
ClusterActionHandler
. For each 'before' and 'after' action type there
is a corresponding method that implementations may override.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterActionHandlerSupport
public ClusterActionHandlerSupport()
beforeAction
public void beforeAction(ClusterActionEvent event)
throws IOException,
InterruptedException
- Description copied from class:
ClusterActionHandler
- Called before the action is performed, giving the implementation an
opportunity to specify scripts that should be run as a part of this
action.
- Overrides:
beforeAction
in class ClusterActionHandler
- Throws:
IOException
InterruptedException
afterAction
public void afterAction(ClusterActionEvent event)
throws IOException,
InterruptedException
- Description copied from class:
ClusterActionHandler
- Called after the action has been performed.
- Overrides:
afterAction
in class ClusterActionHandler
- Throws:
IOException
InterruptedException
beforeBootstrap
protected void beforeBootstrap(ClusterActionEvent event)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
beforeConfigure
protected void beforeConfigure(ClusterActionEvent event)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
beforeDestroy
protected void beforeDestroy(ClusterActionEvent event)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
beforeOtherAction
protected void beforeOtherAction(ClusterActionEvent event)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
afterBootstrap
protected void afterBootstrap(ClusterActionEvent event)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
afterConfigure
protected void afterConfigure(ClusterActionEvent event)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
afterDestroy
protected void afterDestroy(ClusterActionEvent event)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
afterOtherAction
protected void afterOtherAction(ClusterActionEvent event)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
addRunUrl
public static void addRunUrl(ClusterActionEvent event,
String runUrl,
String... args)
throws IOException
- A convenience method for adding a
RunUrlStatement
to a
ClusterActionEvent
.
- Throws:
IOException
addStatement
public static void addStatement(ClusterActionEvent event,
org.jclouds.scriptbuilder.domain.Statement statement)
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.