public final class ReplicaInfo
extends java.lang.Object
| Constructor and Description |
|---|
ReplicaInfo(long term,
org.onosproject.cluster.NodeId master,
java.util.List<org.onosproject.cluster.NodeId> backups)
Creates a ReplicaInfo instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.onosproject.cluster.NodeId> |
backups()
Returns the collection of NodeId, where backup copies should be placed.
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
java.util.Optional<org.onosproject.cluster.NodeId> |
master()
Returns the NodeId, if there is a Node where the master copy should be.
|
long |
term()
Returns the mastership term.
|
public ReplicaInfo(long term,
org.onosproject.cluster.NodeId master,
java.util.List<org.onosproject.cluster.NodeId> backups)
term - monotonically increasing unique mastership termmaster - NodeId of the node where the master copy should bebackups - list of NodeId, where backup copies should be placedpublic long term()
public java.util.Optional<org.onosproject.cluster.NodeId> master()
public java.util.List<org.onosproject.cluster.NodeId> backups()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object