Class VotingConfig
java.lang.Object
org.opendaylight.controller.cluster.raft.messages.Payload
org.opendaylight.controller.cluster.raft.spi.AbstractRaftCommand
org.opendaylight.controller.cluster.raft.persisted.VotingConfig
- All Implemented Interfaces:
Serializable,RaftCommand,StateMachineCommand,Immutable
RAFT cluster configuration. This command is always persisted, no matter whether or not we are persisting other data
distributed via
ReplicatedLogEntry.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.controller.cluster.raft.spi.StateMachineCommand
StateMachineCommand.Reader<T extends StateMachineCommand>, StateMachineCommand.Support<T extends StateMachineCommand>, StateMachineCommand.Writer<T extends StateMachineCommand> -
Constructor Summary
ConstructorsConstructorDescriptionVotingConfig(List<ServerInfo> serverInfo) VotingConfig(ServerInfo serverInfo) VotingConfig(ServerInfo... serverInfo) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()intReturn the estimate of serialized size of this payload when passed through serialization.Returns knownServerInfostructures.intsize()Return the estimate of in-memory size of this payload.toString()protected ObjectReturn the serialization proxy for this object.Methods inherited from class org.opendaylight.controller.cluster.raft.messages.Payload
toSerialFormMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opendaylight.controller.cluster.raft.spi.StateMachineCommand
toSerialForm
-
Constructor Details
-
VotingConfig
-
VotingConfig
-
VotingConfig
-
-
Method Details
-
serverInfo
Returns knownServerInfostructures.- Returns:
- known
ServerInfostructures
-
size
public int size()Description copied from class:PayloadReturn the estimate of in-memory size of this payload. -
serializedSize
public int serializedSize()Description copied from class:PayloadReturn the estimate of serialized size of this payload when passed through serialization. The estimate needs to be reasonably accurate and should err on the side of caution and report a slightly-higher size in face of uncertainty.- Specified by:
serializedSizein classPayload- Returns:
- An estimate of serialized size.
-
writeReplace
Description copied from class:PayloadReturn the serialization proxy for this object.- Specified by:
writeReplacein classPayload- Returns:
- Serialization proxy
-
hashCode
public int hashCode() -
equals
-
toString
-