public static final class EloquentRaftProto.AppendEntriesRequest extends com.google.protobuf.GeneratedMessageV3 implements EloquentRaftProto.AppendEntriesRequestOrBuilder
ai.eloquent.raft.AppendEntriesRequest| Modifier and Type | Class and Description |
|---|---|
static class |
EloquentRaftProto.AppendEntriesRequest.Builder
Protobuf type
ai.eloquent.raft.AppendEntriesRequest |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ENTRIES_FIELD_NUMBER |
static int |
LEADERCOMMIT_FIELD_NUMBER |
static int |
LEADERNAME_FIELD_NUMBER |
static int |
LEADERTIMISH_FIELD_NUMBER |
static int |
PREVLOGINDEX_FIELD_NUMBER |
static int |
PREVLOGTERM_FIELD_NUMBER |
static int |
TERM_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static EloquentRaftProto.AppendEntriesRequest |
getDefaultInstance() |
EloquentRaftProto.AppendEntriesRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
EloquentRaftProto.LogEntry |
getEntries(int index)
log entries to store (empty for heartbeat; may send more than one for efficiency)
|
int |
getEntriesCount()
log entries to store (empty for heartbeat; may send more than one for efficiency)
|
java.util.List<EloquentRaftProto.LogEntry> |
getEntriesList()
log entries to store (empty for heartbeat; may send more than one for efficiency)
|
EloquentRaftProto.LogEntryOrBuilder |
getEntriesOrBuilder(int index)
log entries to store (empty for heartbeat; may send more than one for efficiency)
|
java.util.List<? extends EloquentRaftProto.LogEntryOrBuilder> |
getEntriesOrBuilderList()
log entries to store (empty for heartbeat; may send more than one for efficiency)
|
long |
getLeaderCommit()
the leader's commitIndex
|
java.lang.String |
getLeaderName()
so follower can redirect clients
|
com.google.protobuf.ByteString |
getLeaderNameBytes()
so follower can redirect clients
|
long |
getLeaderTimish()
NOT STANDARD RAFT: the leader's timestamp, so we can compute the timish values across the cluster
|
com.google.protobuf.Parser<EloquentRaftProto.AppendEntriesRequest> |
getParserForType() |
long |
getPrevLogIndex()
index of log entry immediately preceding new ones
|
long |
getPrevLogTerm()
term of log entry immediately preceding new ones
|
int |
getSerializedSize() |
long |
getTerm()
Leader's term
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static EloquentRaftProto.AppendEntriesRequest.Builder |
newBuilder() |
static EloquentRaftProto.AppendEntriesRequest.Builder |
newBuilder(EloquentRaftProto.AppendEntriesRequest prototype) |
EloquentRaftProto.AppendEntriesRequest.Builder |
newBuilderForType() |
protected EloquentRaftProto.AppendEntriesRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static EloquentRaftProto.AppendEntriesRequest |
parseDelimitedFrom(java.io.InputStream input) |
static EloquentRaftProto.AppendEntriesRequest |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EloquentRaftProto.AppendEntriesRequest |
parseFrom(byte[] data) |
static EloquentRaftProto.AppendEntriesRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EloquentRaftProto.AppendEntriesRequest |
parseFrom(java.nio.ByteBuffer data) |
static EloquentRaftProto.AppendEntriesRequest |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EloquentRaftProto.AppendEntriesRequest |
parseFrom(com.google.protobuf.ByteString data) |
static EloquentRaftProto.AppendEntriesRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EloquentRaftProto.AppendEntriesRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static EloquentRaftProto.AppendEntriesRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EloquentRaftProto.AppendEntriesRequest |
parseFrom(java.io.InputStream input) |
static EloquentRaftProto.AppendEntriesRequest |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<EloquentRaftProto.AppendEntriesRequest> |
parser() |
EloquentRaftProto.AppendEntriesRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TERM_FIELD_NUMBER
public static final int LEADERNAME_FIELD_NUMBER
public static final int PREVLOGINDEX_FIELD_NUMBER
public static final int PREVLOGTERM_FIELD_NUMBER
public static final int ENTRIES_FIELD_NUMBER
public static final int LEADERCOMMIT_FIELD_NUMBER
public static final int LEADERTIMISH_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public long getTerm()
Leader's term
uint64 term = 1;getTerm in interface EloquentRaftProto.AppendEntriesRequestOrBuilderpublic java.lang.String getLeaderName()
so follower can redirect clients
string leaderName = 2;getLeaderName in interface EloquentRaftProto.AppendEntriesRequestOrBuilderpublic com.google.protobuf.ByteString getLeaderNameBytes()
so follower can redirect clients
string leaderName = 2;getLeaderNameBytes in interface EloquentRaftProto.AppendEntriesRequestOrBuilderpublic long getPrevLogIndex()
index of log entry immediately preceding new ones
uint64 prevLogIndex = 3;getPrevLogIndex in interface EloquentRaftProto.AppendEntriesRequestOrBuilderpublic long getPrevLogTerm()
term of log entry immediately preceding new ones
uint64 prevLogTerm = 4;getPrevLogTerm in interface EloquentRaftProto.AppendEntriesRequestOrBuilderpublic java.util.List<EloquentRaftProto.LogEntry> getEntriesList()
log entries to store (empty for heartbeat; may send more than one for efficiency)
repeated .ai.eloquent.raft.LogEntry entries = 5;getEntriesList in interface EloquentRaftProto.AppendEntriesRequestOrBuilderpublic java.util.List<? extends EloquentRaftProto.LogEntryOrBuilder> getEntriesOrBuilderList()
log entries to store (empty for heartbeat; may send more than one for efficiency)
repeated .ai.eloquent.raft.LogEntry entries = 5;getEntriesOrBuilderList in interface EloquentRaftProto.AppendEntriesRequestOrBuilderpublic int getEntriesCount()
log entries to store (empty for heartbeat; may send more than one for efficiency)
repeated .ai.eloquent.raft.LogEntry entries = 5;getEntriesCount in interface EloquentRaftProto.AppendEntriesRequestOrBuilderpublic EloquentRaftProto.LogEntry getEntries(int index)
log entries to store (empty for heartbeat; may send more than one for efficiency)
repeated .ai.eloquent.raft.LogEntry entries = 5;getEntries in interface EloquentRaftProto.AppendEntriesRequestOrBuilderpublic EloquentRaftProto.LogEntryOrBuilder getEntriesOrBuilder(int index)
log entries to store (empty for heartbeat; may send more than one for efficiency)
repeated .ai.eloquent.raft.LogEntry entries = 5;getEntriesOrBuilder in interface EloquentRaftProto.AppendEntriesRequestOrBuilderpublic long getLeaderCommit()
the leader's commitIndex
uint64 leaderCommit = 6;getLeaderCommit in interface EloquentRaftProto.AppendEntriesRequestOrBuilderpublic long getLeaderTimish()
NOT STANDARD RAFT: the leader's timestamp, so we can compute the timish values across the cluster
uint64 leaderTimish = 7;getLeaderTimish in interface EloquentRaftProto.AppendEntriesRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static EloquentRaftProto.AppendEntriesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EloquentRaftProto.AppendEntriesRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EloquentRaftProto.AppendEntriesRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EloquentRaftProto.AppendEntriesRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EloquentRaftProto.AppendEntriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EloquentRaftProto.AppendEntriesRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EloquentRaftProto.AppendEntriesRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static EloquentRaftProto.AppendEntriesRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static EloquentRaftProto.AppendEntriesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static EloquentRaftProto.AppendEntriesRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static EloquentRaftProto.AppendEntriesRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static EloquentRaftProto.AppendEntriesRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic EloquentRaftProto.AppendEntriesRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static EloquentRaftProto.AppendEntriesRequest.Builder newBuilder()
public static EloquentRaftProto.AppendEntriesRequest.Builder newBuilder(EloquentRaftProto.AppendEntriesRequest prototype)
public EloquentRaftProto.AppendEntriesRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected EloquentRaftProto.AppendEntriesRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static EloquentRaftProto.AppendEntriesRequest getDefaultInstance()
public static com.google.protobuf.Parser<EloquentRaftProto.AppendEntriesRequest> parser()
public com.google.protobuf.Parser<EloquentRaftProto.AppendEntriesRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public EloquentRaftProto.AppendEntriesRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder