| Package | Description |
|---|---|
| com.mongodb |
Main package with core files.
|
| Modifier and Type | Field and Description |
|---|---|
private TagSet |
ServerDescription.Builder.tags |
private TagSet |
ServerDescription.tagSet |
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List<TagSet> |
TaggableReadPreference.tagSetList |
| Modifier and Type | Method and Description |
|---|---|
TagSet |
ServerDescription.getTagSet() |
private static TagSet |
ServerMonitor.getTagSetFromDocument(DBObject tagsDocument) |
private static TagSet |
ReadPreference.toTags(DBObject tagsDocument) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TagSet> |
TaggableReadPreference.getTagSetList()
Gets the list of tag sets as a list of
TagSet instances. |
private static java.util.List<TagSet> |
ReadPreference.toTagsList(DBObject firstTagSet,
DBObject... remainingTagSets) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TagSet.containsAll(TagSet tagSet)
Returns true if this tag set contains all of the elements of the specified tag set.
|
java.util.List<ServerDescription> |
ClusterDescription.getAnyPrimaryOrSecondary(TagSet tags) |
java.util.List<ServerDescription> |
ClusterDescription.getSecondaries(TagSet tags) |
(package private) abstract java.util.List<ServerDescription> |
TaggableReadPreference.getServersForTags(ClusterDescription clusterDescription,
TagSet tags) |
(package private) java.util.List<ServerDescription> |
TaggableReadPreference.SecondaryReadPreference.getServersForTags(ClusterDescription clusterDescription,
TagSet tags) |
(package private) java.util.List<ServerDescription> |
TaggableReadPreference.NearestReadPreference.getServersForTags(ClusterDescription clusterDescription,
TagSet tags) |
boolean |
ServerDescription.hasTags(TagSet desiredTags)
Returns true if the server has the given tags.
|
static TaggableReadPreference |
ReadPreference.nearest(TagSet tagSet)
Gets a read preference that forces reads to the primary or a secondary with the given set of tags.
|
static TaggableReadPreference |
ReadPreference.primaryPreferred(TagSet tagSet)
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with the given set of tags.
|
static TaggableReadPreference |
ReadPreference.secondary(TagSet tagSet)
Gets a read preference that forces reads to a secondary with the given set of tags.
|
static TaggableReadPreference |
ReadPreference.secondaryPreferred(TagSet tagSet)
Gets a read preference that forces reads to a secondary with the given set of tags, or the primary is none are available.
|
ServerDescription.Builder |
ServerDescription.Builder.tagSet(TagSet tags) |
| Modifier and Type | Method and Description |
|---|---|
static TaggableReadPreference |
ReadPreference.nearest(java.util.List<TagSet> tagSetList)
Gets a read preference that forces reads to the primary or a secondary with one of the given sets of tags.
|
static TaggableReadPreference |
ReadPreference.primaryPreferred(java.util.List<TagSet> tagSetList)
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with one of the given sets of tags.
|
static TaggableReadPreference |
ReadPreference.secondary(java.util.List<TagSet> tagSetList)
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
|
static TaggableReadPreference |
ReadPreference.secondaryPreferred(java.util.List<TagSet> tagSetList)
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
|
static TaggableReadPreference |
ReadPreference.valueOf(java.lang.String name,
java.util.List<TagSet> tagSetList)
Creates a taggable read preference from the given read preference name and list of tag sets.
|
| Constructor and Description |
|---|
NearestReadPreference(java.util.List<TagSet> tagsList) |
PrimaryPreferredReadPreference(java.util.List<TagSet> tagsList) |
SecondaryPreferredReadPreference(java.util.List<TagSet> tagsList) |
SecondaryReadPreference(java.util.List<TagSet> tagsList) |
TaggableReadPreference(java.util.List<TagSet> tagSetList) |