public final class ClusterMetadata extends java.lang.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,
java.lang.String name,
java.util.Set<ControllerNode> nodes,
java.util.Set<Partition> partitions) |
ClusterMetadata(java.lang.String name,
java.util.Set<ControllerNode> nodes,
java.util.Set<Partition> partitions) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
java.lang.String |
getName()
Returns the name of the cluster.
|
java.util.Collection<ControllerNode> |
getNodes()
Returns the collection of
nodes that make up the cluster. |
java.util.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.
|
java.lang.String |
toString() |
public static final com.google.common.hash.Funnel<ClusterMetadata> HASH_FUNNEL
public ClusterMetadata(ProviderId providerId, java.lang.String name, java.util.Set<ControllerNode> nodes, java.util.Set<Partition> partitions)
public ClusterMetadata(java.lang.String name, java.util.Set<ControllerNode> nodes, java.util.Set<Partition> partitions)
public ProviderId providerId()
Provided
providerId
in interface Provided
public java.lang.String getName()
public java.util.Collection<ControllerNode> getNodes()
nodes
that make up the cluster.public java.util.Collection<Partition> getPartitions()
partitions
that make
up the cluster.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object