public class ReplicaSnapshot extends Object
LeaderSnapshot| Modifier and Type | Method and Description |
|---|---|
ObjectId |
getAccepted()
Get last known Git commit at
refs/txn/accepted |
ObjectId |
getCommitted()
Get last known Git commit at
refs/txn/committed |
String |
getErrorMessage()
Get error message
|
KetchReplica |
getReplica()
Get the replica this snapshot describes the state of
|
Date |
getRetryAt()
Get when the leader will retry communication with the offline or lagging
replica
|
KetchReplica.State |
getState()
Get current state of the replica
|
public KetchReplica getReplica()
public KetchReplica.State getState()
@Nullable public ObjectId getAccepted()
refs/txn/acceptedrefs/txn/accepted@Nullable public ObjectId getCommitted()
refs/txn/committedrefs/txn/committed@Nullable public String getErrorMessage()
getState() ==
KetchReplica.State.OFFLINE
an optional human-readable message from the transport system
explaining the failure.Copyright © 2019 Eclipse JGit Project. All rights reserved.