| Package | Description |
|---|---|
| io.debezium.connector.mongodb |
| Modifier and Type | Field and Description |
|---|---|
private ReplicaSet |
MongoDbStreamingChangeEventSource.ReplicaSetOplogContext.replicaSet |
private ReplicaSet |
ConnectionContext.MongoPrimary.replicaSet |
| Modifier and Type | Field and Description |
|---|---|
private List<ReplicaSet> |
ReplicaSets.nonReplicaSets |
private Map<ReplicaSet,ReplicaSetOffsetContext> |
MongoDbOffsetContext.replicaSetOffsetContexts |
private Map<String,ReplicaSet> |
ReplicaSets.replicaSetsByName |
private List<ReplicaSet> |
MongoDbSnapshotChangeEventSource.MongoDbSnapshottingTask.replicaSetsToSnapshot |
| 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> |
MongoDbSnapshotChangeEventSource.MongoDbSnapshottingTask.getReplicaSetsToSnapshot() |
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.client.MongoClient |
ConnectionContext.clientForPrimary(ReplicaSet replicaSet)
Obtain a client that talks only to the primary node of the replica set.
|
com.mongodb.client.MongoClient |
ConnectionContext.clientForReplicaSet(ReplicaSet replicaSet) |
int |
ReplicaSet.compareTo(ReplicaSet that) |
private void |
MongoDbSnapshotChangeEventSource.createDataEvents(ChangeEventSource.ChangeEventSourceContext sourceContext,
MongoDbSnapshotChangeEventSource.MongoDbSnapshotContext snapshotContext,
ReplicaSet replicaSet,
ConnectionContext.MongoPrimary primaryClient) |
private void |
MongoDbSnapshotChangeEventSource.createDataEventsForCollection(ChangeEventSource.ChangeEventSourceContext sourceContext,
MongoDbSnapshotChangeEventSource.MongoDbSnapshotContext snapshotContext,
EventDispatcher.SnapshotReceiver snapshotReceiver,
ReplicaSet replicaSet,
CollectionId collectionId,
ConnectionContext.MongoPrimary primaryClient) |
private void |
MongoDbSnapshotChangeEventSource.createDataEventsForReplicaSet(ChangeEventSource.ChangeEventSourceContext sourceContext,
MongoDbSnapshotChangeEventSource.MongoDbSnapshotContext snapshotContext,
EventDispatcher.SnapshotReceiver snapshotReceiver,
ReplicaSet replicaSet,
ConnectionContext.MongoPrimary primaryClient)
Dispatches the data change events for the records of a single replica-set.
|
private ConnectionContext.MongoPrimary |
MongoDbStreamingChangeEventSource.establishConnectionToPrimary(ReplicaSet replicaSet) |
private ConnectionContext.MongoPrimary |
MongoDbSnapshotChangeEventSource.establishConnectionToPrimary(ReplicaSet replicaSet) |
protected ChangeRecordEmitter |
MongoDbSnapshotChangeEventSource.getChangeRecordEmitter(AbstractSnapshotChangeEventSource.SnapshotContext snapshotContext,
CollectionId collectionId,
org.bson.Document document,
ReplicaSet replicaSet) |
ReplicaSetOffsetContext |
MongoDbOffsetContext.getReplicaSetOffsetContext(ReplicaSet replicaSet)
Get a
ReplicaSetOffsetContext instance for a given ReplicaSet. |
protected Supplier<com.mongodb.client.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.client.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,
Filters filters,
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.
|
private void |
MongoDbStreamingChangeEventSource.readOplog(com.mongodb.client.MongoClient primary,
ConnectionContext.MongoPrimary primaryClient,
ReplicaSet replicaSet,
ChangeEventSource.ChangeEventSourceContext context) |
private void |
MongoDbSnapshotChangeEventSource.snapshotReplicaSet(ChangeEventSource.ChangeEventSourceContext sourceContext,
MongoDbSnapshotChangeEventSource.MongoDbSnapshotContext ctx,
ReplicaSet replicaSet) |
private void |
MongoDbStreamingChangeEventSource.streamChangesForReplicaSet(ChangeEventSource.ChangeEventSourceContext context,
ReplicaSet replicaSet) |
| Modifier and Type | Method and Description |
|---|---|
void |
ReplicaSets.onEachReplicaSet(Consumer<ReplicaSet> function)
Perform the supplied function on each of the replica sets
|
private void |
MongoDbStreamingChangeEventSource.streamChangesForReplicaSets(ChangeEventSource.ChangeEventSourceContext context,
List<ReplicaSet> replicaSets) |
| Constructor and Description |
|---|
MongoPrimary(ConnectionContext context,
ReplicaSet replicaSet,
Filters filters,
BiConsumer<String,Throwable> errorHandler) |
ReplicaSetOffsetContext(MongoDbOffsetContext offsetContext,
ReplicaSet replicaSet,
SourceInfo sourceInfo) |
ReplicaSetOplogContext(ReplicaSetOffsetContext offsetContext,
ConnectionContext.MongoPrimary primary,
ReplicaSet replicaSet) |
| Constructor and Description |
|---|
MongoDbOffsetContext(SourceInfo sourceInfo,
TransactionContext transactionContext,
Map<ReplicaSet,org.bson.Document> offsets) |
MongoDbSnapshottingTask(List<ReplicaSet> replicaSetsToSnapshot) |
ReplicaSets(Collection<ReplicaSet> rsSpecs)
Create a set of replica set specifications.
|
Copyright © 2021 JBoss by Red Hat. All rights reserved.