|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.entity.basic.AbstractEntity
brooklyn.entity.basic.AbstractGroupImpl
brooklyn.entity.group.DynamicClusterImpl
brooklyn.entity.nosql.cassandra.CassandraClusterImpl
public class CassandraClusterImpl extends DynamicClusterImpl
Implementation of CassandraCluster.
Several subtleties to note: - a node may take some time after it is running and serving JMX to actually be contactable on its thrift port (so we wait for thrift port to be contactable) - sometimes new nodes take a while to peer, and/or take a while to get a consistent schema (each up to 1m; often very close to the 1m)
Nested Class Summary | |
---|---|
protected class |
CassandraClusterImpl.SeedTracker
For tracking our seeds. |
Field Summary | |
---|---|
protected CassandraClusterImpl.SeedTracker |
seedTracker
|
Fields inherited from class DynamicClusterImpl | |
---|---|
mutex |
Fields inherited from class AbstractEntity | |
---|---|
EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, managementSupport, tempWorkings |
Constructor Summary | |
CassandraClusterImpl()
|
Method Summary | |
---|---|
protected void
|
connectEnrichers()
|
protected void
|
connectSensors()
|
protected void
|
disconnectSensors()
|
java.util.Set
|
gatherPotentialRunningSeeds()
Sets the default MEMBER_SPEC to describe the Cassandra nodes. |
java.util.Set
|
gatherPotentialSeeds()
|
java.lang.String
|
getClusterName()
|
protected EntitySpec
|
getMemberSpec()
|
protected int
|
getQuorumSize()
|
protected Supplier
|
getSeedSupplier()
|
void
|
init()
|
void
|
start(java.util.Collection locations)
|
void
|
stop()
|
void
|
update()
|
Methods inherited from class AbstractGroupImpl | |
---|---|
addMember, getCurrentSize, getMembers, hasMember, init, removeMember, setManagementContext, setMembers, setMembers |
Field Detail |
---|
protected CassandraClusterImpl.SeedTracker seedTracker
Constructor Detail |
---|
public CassandraClusterImpl()
Method Detail |
---|
ImmutableList.of(CassandraNode.THRIFT_PORT_LATENCY_IN_WINDOW, THRIFT_PORT_LATENCY_IN_WINDOW_PER_NODE), protected void connectEnrichers()
protected void connectSensors()
protected void disconnectSensors()
protected EntitySpec> getMemberSpec() { public java.util.Set gatherPotentialRunningSeeds()
public java.util.Set gatherPotentialSeeds()
public java.lang.String getClusterName()
protected EntitySpec getMemberSpec()
protected int getQuorumSize()
protected Supplier getSeedSupplier()
*/ public void init()
// TODO wait until all nodes which we think are up are consistent public void start(java.util.Collection locations)
public void stop()
setAttribute(THRIFT_PORT, null); public void update()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.