Class ReplicaSyncStatusView
java.lang.Object
com.complexible.stardog.api.admin.pack.ReplicaSyncStatusView
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetState()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.
-
Constructor Details
-
ReplicaSyncStatusView
-
-
Method Details
-
getState
- Returns:
- what this node is:
REPLICA,DETACHED(a promotion that has not finished; re-runcluster promote), orPRIMARY
-
getPrimaryAddress
- Returns:
- the primary this cluster replicates from
-
getOutcome
- Returns:
- how this node's last sync round ended, or that it has never run one
-
getStarted
- Returns:
- when the last round started, or
nullif none has
-
getFinished
- Returns:
- when the last round finished, or
nullif none has
-
getDetail
- Returns:
- what the round did or why it did not, in words
-
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
-