| 
 | 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.mongodb.MongoDBReplicaSetImpl
public class MongoDBReplicaSetImpl extends DynamicClusterImpl
Implementation of MongoDBReplicaSet. Replica sets have a minimum of three members. Removal strategy is always NON_PRIMARY_REMOVAL_STRATEGY.
| Field Summary | 
|---|
| 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 | |
| MongoDBReplicaSetImpl() | |
| Method Summary | |
|---|---|
| protected java.util.Map | getCustomChildFlags()Sets MongoDBServer#REPLICA_SET_ENABLED#REPLICA_SET_ENABLED and MongoDBServer#REPLICA_SET_NAME#REPLICA_SET_NAME. | 
| protected EntitySpec | getMemberSpec() | 
| MongoDBServer | getPrimary() | 
| Function | getRemovalStrategy()@return NON_PRIMARY_REMOVAL_STRATEGY | 
| java.lang.String | getReplicaSetName() | 
| java.util.Collection | getSecondaries() | 
| java.lang.Integer | resize(java.lang.Integer desired)Ignore attempts to resize the replica set to an even number of entities to avoid having to introduce arbiters. | 
| void | start(java.util.Collection locations) | 
| void | stop() | 
| Methods inherited from class AbstractGroupImpl | |
|---|---|
| addMember, getCurrentSize, getMembers, hasMember, init, removeMember, setManagementContext, setMembers, setMembers | 
| Constructor Detail | 
|---|
public MongoDBReplicaSetImpl()
| Method Detail | 
|---|
.put(MongoDBServer.REPLICA_SET_ENABLED, true) protected java.util.Map getCustomChildFlags()
protected EntitySpec getMemberSpec()
public MongoDBServer getPrimary()
public Function getRemovalStrategy()
public java.lang.String getReplicaSetName()
.filter(IS_SECONDARY) public java.util.Collection getSecondaries()
LOG.info("Ignored request to resize replica set {} to even number of members", getReplicaSetName());
public java.lang.Integer resize(java.lang.Integer desired)
        desired
 -           The new size of the entity group. Ignored if even, less than MIN_MEMBERS
          or more than MAX_MEMBERS.
@Override protected void onEntityRemoved(Entity member) {
public void start(java.util.Collection locations)
        
public void stop()
Brooklyn Multi-Cloud Application Management Platform 
 brooklyncentral.github.com. Apache License. © 2012.