|
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.DynamicFabricImpl
brooklyn.entity.nosql.cassandra.CassandraFabricImpl
public class CassandraFabricImpl extends DynamicFabricImpl
Implementation of CassandraCluster.
Serveral 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)
| Field Summary |
|---|
| 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 | |
CassandraFabricImpl()
|
|
| Method Summary | |
|---|---|
protected Multimap
|
calculateDatacenterUsage()
|
protected boolean
|
calculateServiceUp()
|
protected void
|
connectEnrichers()
|
protected void
|
connectSensors()
|
protected void
|
disconnectSensors()
|
protected EntitySpec
|
getMemberSpec()
Sets the default MEMBER_SPEC to describe the Cassandra sub-clusters. |
protected int
|
getQuorumSize(java.util.Collection members)
|
protected Supplier
|
getSeedSupplier()
Prefers one node per location, and then others from anywhere. |
void
|
init()
|
void
|
start(java.util.Collection locations)
|
void
|
stop()
|
void
|
update()
|
| Methods inherited from class DynamicFabricImpl | |
|---|---|
| addCluster, createCluster, getCustomChildFlags, getDisplayNamePrefix, getDisplayNameSuffix, getFabricSize, getFactory, getMemberSpec, init, removeChild, restart, setFactory, setMemberSpec, start, stop, waitForTasksOnStart |
| Methods inherited from class AbstractGroupImpl | |
|---|---|
| addMember, getCurrentSize, getMembers, hasMember, init, removeMember, setManagementContext, setMembers, setMembers |
| Constructor Detail |
|---|
public CassandraFabricImpl()
| Method Detail |
|---|
protected Multimap calculateDatacenterUsage()
protected boolean calculateServiceUp()
protected void connectEnrichers()
protected void connectSensors()
protected void disconnectSensors()
.configure(CassandraCluster.SEED_SUPPLIER, getSeedSupplier()); protected EntitySpec getMemberSpec()
protected int getQuorumSize(java.util.Collection members)
protected Supplier getSeedSupplier()
if (log.isDebugEnabled()) log.debug("Location {} updated in Cluster {}", member, this);
public void init()
} public void start(java.util.Collection locations)
} public void stop()
public void update()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.