| Modifier and Type | Field and Description |
|---|---|
private ReplicaSet |
Replicator.replicaSet |
private ReplicaSet |
ConnectionContext.MongoPrimary.replicaSet |
| Modifier and Type | Field and Description |
|---|---|
private List<ReplicaSet> |
ReplicaSets.nonReplicaSets |
private Map<String,ReplicaSet> |
ReplicaSets.replicaSetsByName |
| Modifier and Type | Method and Description |
|---|---|
static ReplicaSet |
ReplicaSet.parse(String hosts)
Parse the supplied string for the information about the hosts for a replica set.
|
ReplicaSet |
ConnectionContext.MongoPrimary.replicaSet()
Get the replica set.
|
| Modifier and Type | Method and Description |
|---|---|
List<ReplicaSet> |
ReplicaSets.all()
Get a copy of all of the
ReplicaSet objects. |
List<ReplicaSet> |
ReplicaSets.unnamedReplicaSets()
Get a copy of all of the
ReplicaSet objects that have no names. |
List<ReplicaSet> |
ReplicaSets.validReplicaSets()
Get a copy of all of the valid
ReplicaSet objects that have names. |
| Modifier and Type | Method and Description |
|---|---|
protected com.mongodb.MongoClient |
ConnectionContext.clientForPrimary(ReplicaSet replicaSet)
Obtain a client that talks only to the primary node of the replica set.
|
com.mongodb.MongoClient |
ConnectionContext.clientForReplicaSet(ReplicaSet replicaSet) |
int |
ReplicaSet.compareTo(ReplicaSet that) |
protected Supplier<com.mongodb.MongoClient> |
ConnectionContext.primaryClientFor(ReplicaSet replicaSet)
Obtain a client that will repeated try to obtain a client to the primary node of the replica set, waiting (and using
this context's back-off strategy) if required until the primary becomes available.
|
protected Supplier<com.mongodb.MongoClient> |
ConnectionContext.primaryClientFor(ReplicaSet replicaSet,
ConnectionContext.PrimaryConnectFailed handler)
Obtain a client that will repeated try to obtain a client to the primary node of the replica set, waiting (and using
this context's back-off strategy) if required until the primary becomes available.
|
ConnectionContext.MongoPrimary |
ConnectionContext.primaryFor(ReplicaSet replicaSet,
BiConsumer<String,Throwable> errorHandler)
Obtain a client that will repeated try to obtain a client to the primary node of the replica set, waiting (and using
this context's back-off strategy) if required until the primary becomes available.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ReplicaSets.onEachReplicaSet(Consumer<ReplicaSet> function)
Perform the supplied function on each of the replica sets
|
| Constructor and Description |
|---|
MongoPrimary(ConnectionContext context,
ReplicaSet replicaSet,
BiConsumer<String,Throwable> errorHandler) |
Replicator(ReplicationContext context,
ReplicaSet replicaSet,
BlockingConsumer<org.apache.kafka.connect.source.SourceRecord> recorder) |
| Constructor and Description |
|---|
ReplicaSets(Collection<ReplicaSet> rsSpecs)
Create a set of replica set specifications.
|
Copyright © 2017 JBoss by Red Hat. All rights reserved.