Class ReplicaSyncStatusView

java.lang.Object
com.complexible.stardog.api.admin.pack.ReplicaSyncStatusView

public class ReplicaSyncStatusView extends Object
What a replica-cluster node reports about replicating from its primary, for cluster status.

Present only on a node of a cluster in replica mode, and carried per node rather than per cluster because the answer differs by node: every node runs a sync loop, and only the coordinator's does anything, so the coordinator's entry is the one that describes what the cluster has pulled. A follower reports the primary it would sync from and an outcome saying it is not the one syncing, which is how an operator sees both facts in one response.

Distinct from StandbyNodeStatus, which stays the standby family's surface: a replica cluster has no standby node in it.

  • Constructor Details

  • Method Details

    • getState

      public String getState()
      Returns:
      what this node is: REPLICA, DETACHED (a promotion that has not finished; re-run cluster promote), or PRIMARY
    • getPrimaryAddress

      public String getPrimaryAddress()
      Returns:
      the primary this cluster replicates from
    • getOutcome

      public String getOutcome()
      Returns:
      how this node's last sync round ended, or that it has never run one
    • getStarted

      public String getStarted()
      Returns:
      when the last round started, or null if none has
    • getFinished

      public String getFinished()
      Returns:
      when the last round finished, or null if none has
    • getDetail

      public String getDetail()
      Returns:
      what the round did or why it did not, in words
    • getSyncedLastTx

      public Map<String,String> getSyncedLastTx()
      The transaction each database has been synced to, as the replica cluster's own ZooKeeper holds it — the last transaction that committed across the whole cluster, not what a replay reported having walked past.
      Returns:
      per-database last transaction