All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.onosproject.cluster.ClusterDefinitionService Maven / Gradle / Ivy

package org.onosproject.cluster;

import java.util.Set;

/**
 * Service for obtaining the static definition of a controller cluster.
 */
public interface ClusterDefinitionService {

    /**
     * Returns the local controller node.
     * @return local controller node
     */
    ControllerNode localNode();

    /**
     * Returns the set of seed nodes that should be used for discovering other members
     * of the cluster.
     * @return set of seed controller nodes
     */
    Set seedNodes();

    /**
     * Forms cluster configuration based on the specified set of node
     * information. Assumes subsequent restart for the new configuration to
     * take hold.
     *
     * @param nodes    set of nodes that form the cluster
     * @param ipPrefix IP address prefix, e.g. 10.0.1.*
     */
    void formCluster(Set nodes, String ipPrefix);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy