public final class ReplicaInfo extends Object
| Constructor and Description |
|---|
ReplicaInfo(org.onosproject.cluster.NodeId master,
List<org.onosproject.cluster.NodeId> backups)
Creates a ReplicaInfo instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<org.onosproject.cluster.NodeId> |
backups()
Returns the collection of NodeId, where backup copies should be placed.
|
boolean |
equals(Object other) |
int |
hashCode() |
com.google.common.base.Optional<org.onosproject.cluster.NodeId> |
master()
Returns the NodeId, if there is a Node where the master copy should be.
|
public ReplicaInfo(org.onosproject.cluster.NodeId master,
List<org.onosproject.cluster.NodeId> backups)
master - NodeId of the node where the master copy should bebackups - list of NodeId, where backup copies should be placedpublic com.google.common.base.Optional<org.onosproject.cluster.NodeId> master()
public List<org.onosproject.cluster.NodeId> backups()
Copyright © 2016. All rights reserved.