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.booleanThe list of execution nodes for the replication.inthashCode()mode()The mode of the replication.name()The name of the replication instance.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.
-
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.
-
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()
-