class LagCheck
extends java.lang.Object
implements java.lang.AutoCloseable
KetchReplica
is ahead or behind the leader.Modifier and Type | Class and Description |
---|---|
private static class |
LagCheck.RefGoneException |
Modifier and Type | Field and Description |
---|---|
private ObjectId |
remoteId |
private KetchReplica |
replica |
private Repository |
repo |
private RevWalk |
rw |
Constructor and Description |
---|
LagCheck(KetchReplica replica,
Repository repo) |
Modifier and Type | Method and Description |
---|---|
(package private) KetchReplica.State |
check(ObjectId acceptId,
ReceiveCommand acceptCmd) |
void |
close() |
(package private) ObjectId |
getRemoteId() |
private void |
initRevWalk() |
private RevCommit |
parseRemoteCommit(java.lang.String refName) |
private final KetchReplica replica
private final Repository repo
private RevWalk rw
private ObjectId remoteId
LagCheck(KetchReplica replica, Repository repo)
private void initRevWalk()
public void close()
close
in interface java.lang.AutoCloseable
ObjectId getRemoteId()
KetchReplica.State check(ObjectId acceptId, ReceiveCommand acceptCmd)
private RevCommit parseRemoteCommit(java.lang.String refName) throws java.io.IOException, MissingObjectException, LagCheck.RefGoneException
java.io.IOException
MissingObjectException
LagCheck.RefGoneException