public class CassandraClusterActionHandler extends ClusterActionHandlerSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
BIN_TARBALL |
static String |
CASSANDRA_ROLE |
static int |
CLIENT_PORT |
static int |
JMX_PORT |
static String |
MAJOR_VERSION |
BOOTSTRAP_ACTION, CLEANUP_ACTION, CONFIGURE_ACTION, DESTROY_ACTION, START_ACTION, STOP_ACTION| Constructor and Description |
|---|
CassandraClusterActionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeBootstrap(ClusterActionEvent event) |
protected void |
beforeCleanup(ClusterActionEvent event) |
protected void |
beforeConfigure(ClusterActionEvent event) |
protected void |
beforeStart(ClusterActionEvent event) |
protected void |
beforeStop(ClusterActionEvent event) |
protected List<String> |
computeInitialTokens(int numberOfNodes)
Compute initial_token for a balanced cluster
|
String |
getRole() |
protected List<Cluster.Instance> |
getSeeds(Set<Cluster.Instance> instances)
Pick a selection of the nodes that are to become seeds.
|
addClusterToEtcHostsAndFirewall, addRunUrl, addStatement, afterAction, afterBootstrap, afterCleanup, afterConfigure, afterDestroy, afterOtherAction, afterStart, afterStop, beforeAction, beforeDestroy, beforeOtherAction, equals, getCleanupFunction, getConfiguration, getConfiguration, getConfigureFunction, getFunctionName, getInstallFunction, getStartFunction, getStopFunction, handleFirewallRules, hashCode, prepareRemoteFileUrl, toStringpublic static final String CASSANDRA_ROLE
public static final int CLIENT_PORT
public static final int JMX_PORT
public static final String BIN_TARBALL
public static final String MAJOR_VERSION
public String getRole()
protected void beforeBootstrap(ClusterActionEvent event) throws IOException
beforeBootstrap in class ClusterActionHandlerSupportIOExceptionprotected void beforeConfigure(ClusterActionEvent event) throws IOException, InterruptedException
beforeConfigure in class ClusterActionHandlerSupportIOExceptionInterruptedExceptionprotected void beforeStart(ClusterActionEvent event)
beforeStart in class ClusterActionHandlerSupportprotected void beforeStop(ClusterActionEvent event)
beforeStop in class ClusterActionHandlerSupportprotected void beforeCleanup(ClusterActionEvent event)
beforeCleanup in class ClusterActionHandlerSupportprotected List<Cluster.Instance> getSeeds(Set<Cluster.Instance> instances)
instances - all nodes in clusterCopyright © 2010–2016 Cloudera. All rights reserved.