brooklyn.entity.nosql.mongodb
[Java] Interface MongoDBReplicaSet
brooklyn.entity.trait.Startable
brooklyn.entity.rebind.Rebindable
brooklyn.entity.Entity
brooklyn.entity.Group
brooklyn.entity.group.Cluster
brooklyn.entity.group.DynamicCluster
brooklyn.entity.trait.Changeable
brooklyn.entity.basic.AbstractGroup
brooklyn.entity.nosql.mongodb.MongoDBReplicaSet
brooklyn.entity.trait.Identifiable
brooklyn.entity.trait.Resizable
- All Superinterfaces:
- Startable, Rebindable, Entity, Group, Cluster, DynamicCluster, Changeable, AbstractGroup, Identifiable, Resizable
@ImplementedBy(MongoDBReplicaSetImpl.class)
public interface MongoDBReplicaSet
extends DynamicCluster
A replica set of MongoDBServers, based on DynamicCluster which can be resized by a policy
if required.
Note
An issue with mongod
on Mac OS X can cause unpredictable failure of servers at start-up.
See this mailing list post
for more information.
This replica set implementation has been tested on OS X 10.6 and Ubuntu 12.04.
- See Also:
Fields inherited from interface DynamicCluster
|
AVAILABILITY_ZONE_NAMES, CUSTOM_CHILD_FLAGS, ENABLE_AVAILABILITY_ZONES, ENTITY_QUARANTINED, FACTORY, FAILED_SUB_LOCATIONS, INITIAL_QUORUM_SIZE, MEMBER_SPEC, NUM_AVAILABILITY_ZONES, QUARANTINE_FAILED_ENTITIES, QUARANTINE_GROUP, REMOVAL_STRATEGY, REPLACE_MEMBER, SERVICE_STATE, SUB_LOCATIONS, ZONE_FAILURE_DETECTOR, ZONE_PLACEMENT_STRATEGY |
Methods inherited from interface Entity
|
addChild, addChild, addEnricher, addGroup, addPolicy, clearParent, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, getRebindSupport, invoke, removeChild, removeEnricher, removePolicy, setParent |
PRIMARY
public AttributeSensor PRIMARY
-
REPLICA_SET_NAME
@SetFromFlag("replicaSetName")
public ConfigKey REPLICA_SET_NAME
-
SECONDARIES
public AttributeSensor SECONDARIES
-
getPrimary
public MongoDBServer getPrimary()
-
- Returns:
- The primary MongoDB server in the replica set.
getReplicaSetName
public java.lang.String getReplicaSetName()
- The name of the replica set.
getSecondaries
public java.util.Collection getSecondaries()
-
- Returns:
- The secondary servers in the replica set.
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.