Package org.eclipse.jgit.internal.ketch
Class ReplicaSnapshot
- java.lang.Object
-
- org.eclipse.jgit.internal.ketch.ReplicaSnapshot
-
public class ReplicaSnapshot extends Object
A snapshot of a replica.- See Also:
LeaderSnapshot
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectId
getAccepted()
Get last known Git commit atrefs/txn/accepted
ObjectId
getCommitted()
Get last known Git commit atrefs/txn/committed
String
getErrorMessage()
Get error messageKetchReplica
getReplica()
Get the replica this snapshot describes the state ofDate
getRetryAt()
Get when the leader will retry communication with the offline or lagging replicaKetchReplica.State
getState()
Get current state of the replica
-
-
-
Method Detail
-
getReplica
public KetchReplica getReplica()
Get the replica this snapshot describes the state of- Returns:
- the replica this snapshot describes the state of
-
getState
public KetchReplica.State getState()
Get current state of the replica- Returns:
- current state of the replica
-
getAccepted
@Nullable public ObjectId getAccepted()
Get last known Git commit atrefs/txn/accepted
- Returns:
- last known Git commit at
refs/txn/accepted
-
getCommitted
@Nullable public ObjectId getCommitted()
Get last known Git commit atrefs/txn/committed
- Returns:
- last known Git commit at
refs/txn/committed
-
getErrorMessage
@Nullable public String getErrorMessage()
Get error message- Returns:
- if
getState()
==KetchReplica.State.OFFLINE
an optional human-readable message from the transport system explaining the failure.
-
-