Class CdcReplicationInstance

java.lang.Object
org.gridgain.internal.cdc.api.replication.CdcReplicationInstance

public class CdcReplicationInstance extends Object
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.
  • Constructor Details

    • CdcReplicationInstance

      public CdcReplicationInstance()
      Constructor needed for deserialization.
  • Method Details

    • name

      public String name()
      The name of the replication instance. The name is unique.
      Returns:
      The name of the replication instance.
    • sinkName

      public String sinkName()
      The name of the sink where the data will be replicated.
      Returns:
      The name of the sink.
    • sourceName

      public String sourceName()
      The name of the source from which the data will be replicated.
      Returns:
      The name of the source.
    • mode

      public CdcReplicationMode mode()
      The mode of the replication.
      Returns:
      The mode of the replication.
    • executionNodes

      public CdcReplicationExecNodes executionNodes()
      The list of execution nodes for the replication.
      Returns:
      The list of execution nodes.
    • status

      public CdcReplicationStatus status()
      The status of the replication instance.
      Returns:
      The status of the replication instance.
    • runningOnNodeId

      public String 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

      @Nullable public @Nullable String errorContext()
      Additional context about errors that occurred during replication.
      Returns:
      The error context, or null if no errors have occurred.
    • builder

      Creates a builder for CdcReplicationInstance.
      Returns:
      A new instance of CdcReplicationInstance.ReplicationInstanceBuilder.
    • toBuilder

      Converts this instance to a builder.
      Returns:
      A new instance of CdcReplicationInstance.ReplicationInstanceBuilder initialized with the current instance's values.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object