public final class ClusterMetadata extends Object implements Provided
Metadata specifies how a ONOS cluster is constituted and is made up of the collection
of nodes and the collection of data
partitions.
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.hash.Funnel<ClusterMetadata> |
HASH_FUNNEL |
| Constructor and Description |
|---|
ClusterMetadata(ProviderId providerId,
String name,
Set<ControllerNode> nodes,
Set<Partition> partitions) |
ClusterMetadata(String name,
Set<ControllerNode> nodes,
Set<Partition> partitions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
String |
getName()
Returns the name of the cluster.
|
Collection<ControllerNode> |
getNodes()
Returns the collection of
nodes that make up the cluster. |
Collection<Partition> |
getPartitions()
Returns the collection of
partitions that make
up the cluster. |
int |
hashCode() |
ProviderId |
providerId()
Returns the identifier of the provider which supplied the entity.
|
String |
toString() |
public static final com.google.common.hash.Funnel<ClusterMetadata> HASH_FUNNEL
public ClusterMetadata(ProviderId providerId, String name, Set<ControllerNode> nodes, Set<Partition> partitions)
public ClusterMetadata(String name, Set<ControllerNode> nodes, Set<Partition> partitions)
public ProviderId providerId()
ProvidedproviderId in interface Providedpublic String getName()
public Collection<ControllerNode> getNodes()
nodes that make up the cluster.public Collection<Partition> getPartitions()
partitions that make
up the cluster.