java.lang.Object
org.jgroups.protocols.raft.PersistentState
- All Implemented Interfaces:
org.jgroups.util.SizeStreamable,org.jgroups.util.Streamable
Responsible for a node's internal state.
The data in this class is serialized and stored at the beginning of a snapshot file. This class does not
hold information that the RAFT protocol requires to be persistent, e.g., terms and votes.
- Since:
- 1.0.11
- Author:
- Jose Bolina
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintvoidsetMembers(Collection<String> value) toString()voidwriteTo(DataOutput out)
-
Constructor Details
-
PersistentState
public PersistentState()
-
-
Method Details
-
getMembers
-
setMembers
-
writeTo
- Specified by:
writeToin interfaceorg.jgroups.util.Streamable- Throws:
IOException
-
readFrom
- Specified by:
readFromin interfaceorg.jgroups.util.Streamable- Throws:
IOException
-
serializedSize
public int serializedSize()- Specified by:
serializedSizein interfaceorg.jgroups.util.SizeStreamable
-
toString
-