/** * If success is true, matchIndex should be set to mnIndex. If success is false, nextIndex should be set to * mnIndex. */ public void appendEntryReply(Message message, int fromMemberId, int term, int mnIndex, boolean success) throws InterruptedException, GondolaException { notImplemented(message, fromMemberId); }
.appendEntryRequest(this, fromMemberId, term, prevRid.term, prevRid.index, commitIndex, isHeartbeat, entryTerm, buffer, bufferOffset, commandSize, size == overhead[TYPE_APPEND_ENTRY_REQ] + commandSize); cont = handler.appendEntryRequest(this, fromMemberId, term, prevRid.term, pli, commitIndex, isHeartbeat, entryTerm, buffer, bo, cs, lastCommand); if (!cont) { handler.appendEntryReply(this, fromMemberId, term, mnIndex, success); break; case TYPE_REQUEST_VOTE_REQ: handler.requestVoteRequest(this, fromMemberId, term, isPrevote, prevRid); break; case TYPE_REQUEST_VOTE_REP: handler.requestVoteReply(this, fromMemberId, term, isPrevote, voteGranted); break;
.appendEntryRequest(this, fromMemberId, term, prevRid.term, prevRid.index, commitIndex, isHeartbeat, entryTerm, buffer, bufferOffset, commandSize, size == overhead[TYPE_APPEND_ENTRY_REQ] + commandSize); cont = handler.appendEntryRequest(this, fromMemberId, term, prevRid.term, pli, commitIndex, isHeartbeat, entryTerm, buffer, bo, cs, lastCommand); if (!cont) { handler.appendEntryReply(this, fromMemberId, term, mnIndex, success); break; case TYPE_REQUEST_VOTE_REQ: handler.requestVoteRequest(this, fromMemberId, term, isPrevote, prevRid); break; case TYPE_REQUEST_VOTE_REP: handler.requestVoteReply(this, fromMemberId, term, isPrevote, voteGranted); break;
/** * If success is true, matchIndex should be set to mnIndex. * If success is false, nextIndex should be set to mnIndex. */ public void appendEntryReply(Message message, int fromMemberId, int term, int mnIndex, boolean success) throws Exception { notImplemented(message, fromMemberId); }
public void requestVoteReply(Message message, int fromMemberId, int term, boolean isPrevote, boolean voteGranted) throws Exception { notImplemented(message, fromMemberId); } }
public void requestVoteReply(Message message, int fromMemberId, int term, boolean isPrevote, boolean voteGranted) throws InterruptedException, GondolaException { notImplemented(message, fromMemberId); } }
public void pingReply(Message message, int fromMemberId, long timestamp) throws Exception { notImplemented(message, fromMemberId); }
public void requestVoteRequest(Message message, int fromMemberId, int term, boolean isPrevote, Rid lastLogRid) throws Exception { notImplemented(message, fromMemberId); }
public void requestVoteRequest(Message message, int fromMemberId, int term, boolean isPrevote, Rid lastLogRid) throws InterruptedException, GondolaException { notImplemented(message, fromMemberId); }
/** * This method is called for every command that has been batched in this message. Do not reuse 'message' to create a * reply since it will still be in use until all batches are handled. * * @param lastCommand is true if there are no more commands in the message. * @return true to get the next batch (if any); false to stop getting more batches. */ public boolean appendEntryRequest(Message message, int fromMemberId, int term, int prevLogTerm, int prevLogIndex, int commitIndex, boolean isHeartbeat, int entryTerm, byte[] buffer, int bufferOffset, int bufferLen, boolean lastCommand) throws InterruptedException, GondolaException { notImplemented(message, fromMemberId); return false; }
public void pingRequest(Message message, int fromMemberId, long timestamp) throws Exception { notImplemented(message, fromMemberId); }
/** * This method is called for every command that has been batched in this message. * Do not reuse 'message' to create a reply since it will still be in use until all batches are handled. * * @param lastCommand is true if there are no more commands in the message. * @return true to get the next batch (if any); false to stop getting more batches. */ public boolean appendEntryRequest(Message message, int fromMemberId, int term, int prevLogTerm, int prevLogIndex, int commitIndex, boolean isHeartbeat, int entryTerm, byte[] buffer, int bufferOffset, int bufferLen, boolean lastCommand) throws Exception { notImplemented(message, fromMemberId); return false; }