public class SnapshotEntry extends LogEntry implements IdentifiedDataSerializable
RaftLog
.
Snapshot entry is sent to followers via
InstallSnapshot
RPC.
Constructor and Description |
---|
SnapshotEntry() |
SnapshotEntry(int term,
long index,
Object operation,
long groupMembersLogIndex,
Collection<Endpoint> groupMembers) |
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns type identifier for this class.
|
Collection<Endpoint> |
groupMembers() |
long |
groupMembersLogIndex() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
String |
toString(boolean detailed) |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
getFactoryId, index, operation, term
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFactoryId
public SnapshotEntry()
public SnapshotEntry(int term, long index, Object operation, long groupMembersLogIndex, Collection<Endpoint> groupMembers)
public long groupMembersLogIndex()
public Collection<Endpoint> groupMembers()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
writeData
in class LogEntry
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
readData
in class LogEntry
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
getId
in class LogEntry
public String toString(boolean detailed)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.