Class CdcReplicationInstance
java.lang.Object
org.gridgain.internal.cdc.api.replication.CdcReplicationInstance
The definition of a CDC replication instance. There is a one-to-one mapping between
CdcReplicationInstance and CdcReplicationDefinition. So, what's the difference?
The CdcReplicationDefinition is used to create a new replication instance, it is a "definition
provided by the user". The CdcReplicationInstance is the actual instance that is created. Also,
the CdcReplicationInstance contains additional information such as the status of the replication.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forCdcReplicationInstance.boolean@Nullable StringAdditional context about errors that occurred during replication.The list of execution nodes for the replication.inthashCode()mode()The mode of the replication.name()The name of the replication instance.The ID of the node on which the replication is currently running.sinkName()The name of the sink where the data will be replicated.The name of the source from which the data will be replicated.status()The status of the replication instance.Converts this instance to a builder.toString()
-
Constructor Details
-
CdcReplicationInstance
public CdcReplicationInstance()Constructor needed for deserialization.
-
-
Method Details
-
name
The name of the replication instance. The name is unique.- Returns:
- The name of the replication instance.
-
sinkName
The name of the sink where the data will be replicated.- Returns:
- The name of the sink.
-
sourceName
The name of the source from which the data will be replicated.- Returns:
- The name of the source.
-
mode
The mode of the replication.- Returns:
- The mode of the replication.
-
executionNodes
The list of execution nodes for the replication.- Returns:
- The list of execution nodes.
-
status
The status of the replication instance.- Returns:
- The status of the replication instance.
-
runningOnNodeId
The ID of the node on which the replication is currently running.- Returns:
- The node ID where the replication is running, or null if not running.
-
errorContext
Additional context about errors that occurred during replication.- Returns:
- The error context, or null if no errors have occurred.
-
builder
Creates a builder forCdcReplicationInstance.- Returns:
- A new instance of
CdcReplicationInstance.ReplicationInstanceBuilder.
-
toBuilder
Converts this instance to a builder.- Returns:
- A new instance of
CdcReplicationInstance.ReplicationInstanceBuilderinitialized with the current instance's values.
-
equals
-
hashCode
public int hashCode() -
toString
-