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,
ControllerNode localNode,
Set<ControllerNode> controllerNodes,
Set<Node> storageNodes,
String clusterSecret) |
ClusterMetadata(ProviderId providerId,
String name,
ControllerNode localNode,
Set<ControllerNode> controllerNodes,
String storageDnsService,
Set<Node> storageNodes)
Deprecated.
since 1.15.
|
ClusterMetadata(ProviderId providerId,
String name,
ControllerNode localNode,
Set<ControllerNode> controllerNodes,
String storageDnsService,
Set<Node> storageNodes,
String clusterSecret) |
ClusterMetadata(String name,
ControllerNode localNode,
Set<ControllerNode> controllerNodes,
Set<Node> storageNodes)
Deprecated.
since 1.15.
|
ClusterMetadata(String name,
ControllerNode localNode,
Set<ControllerNode> controllerNodes,
Set<Node> storageNodes,
String clusterSecret) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
String |
getClusterSecret()
Returns the cluster's shared secret.
|
Collection<ControllerNode> |
getControllerNodes()
Returns the collection of
nodes that make up the cluster. |
ControllerNode |
getLocalNode()
Returns the local controller node.
|
String |
getName()
Returns the name of the cluster.
|
Collection<ControllerNode> |
getNodes()
Deprecated.
|
Collection<Partition> |
getPartitions()
Deprecated.
since 1.14
|
String |
getStorageDnsService()
Returns the DNS service through which to locate storage nodes.
|
Collection<Node> |
getStorageNodes()
Returns the collection of storage nodes.
|
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
@Deprecated public ClusterMetadata(ProviderId providerId, String name, ControllerNode localNode, Set<ControllerNode> controllerNodes, String storageDnsService, Set<Node> storageNodes)
providerId
- the provider Idname
- The cluster NamelocalNode
- The local nodecontrollerNodes
- Set of nodes in clusterstorageDnsService
- The storage DNS service namestorageNodes
- Set of storage nodespublic ClusterMetadata(ProviderId providerId, String name, ControllerNode localNode, Set<ControllerNode> controllerNodes, Set<Node> storageNodes, String clusterSecret)
public ClusterMetadata(ProviderId providerId, String name, ControllerNode localNode, Set<ControllerNode> controllerNodes, String storageDnsService, Set<Node> storageNodes, String clusterSecret)
@Deprecated public ClusterMetadata(String name, ControllerNode localNode, Set<ControllerNode> controllerNodes, Set<Node> storageNodes)
name
- The cluster NamelocalNode
- The local nodecontrollerNodes
- Set of nodes in clusterstorageNodes
- Set of storage nodespublic ClusterMetadata(String name, ControllerNode localNode, Set<ControllerNode> controllerNodes, Set<Node> storageNodes, String clusterSecret)
public ProviderId providerId()
Provided
providerId
in interface Provided
public String getName()
public String getStorageDnsService()
public ControllerNode getLocalNode()
@Deprecated public Collection<ControllerNode> getNodes()
nodes
that make up the cluster.public Collection<ControllerNode> getControllerNodes()
nodes
that make up the cluster.public Collection<Node> getStorageNodes()
@Deprecated public Collection<Partition> getPartitions()
partitions
that make
up the cluster.public String getClusterSecret()