Class ClusterMetadata

  • All Implemented Interfaces:
    Provided

    public final class ClusterMetadata
    extends Object
    implements Provided
    Cluster metadata.

    Metadata specifies how a ONOS cluster is constituted and is made up of the collection of nodes and the collection of data partitions.

    • Field Detail

      • HASH_FUNNEL

        public static final com.google.common.hash.Funnel<ClusterMetadata> HASH_FUNNEL
    • Method Detail

      • providerId

        public ProviderId providerId()
        Description copied from interface: Provided
        Returns the identifier of the provider which supplied the entity.
        Specified by:
        providerId in interface Provided
        Returns:
        provider identification
      • getName

        public String getName()
        Returns the name of the cluster.
        Returns:
        cluster name
      • getStorageDnsService

        public String getStorageDnsService()
        Returns the DNS service through which to locate storage nodes.
        Returns:
        the DNS service through which to locate storage nodes
      • getLocalNode

        public ControllerNode getLocalNode()
        Returns the local controller node.
        Returns:
        the local controller node
      • getControllerNodes

        public Collection<ControllerNode> getControllerNodes()
        Returns the collection of nodes that make up the cluster.
        Returns:
        controller nodes
      • getStorageNodes

        public Collection<Node> getStorageNodes()
        Returns the collection of storage nodes.
        Returns:
        the collection of storage nodes
      • getClusterSecret

        public String getClusterSecret()
        Returns the cluster's shared secret.
        Returns:
        key.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object