blob: afbf0d5a7b7c6566260a2ddbd96dce3690d6cc85 [file] [log] [blame]
tom73d6d1e2014-09-17 20:08:01 -07001package org.onlab.onos.cluster;
2
3import java.util.Set;
4
5/**
6 * Service for obtaining information about the individual instances within
7 * the controller cluster.
8 */
9public interface ClusterService {
10
11 /**
12 * Returns the set of current cluster members.
13 *
14 * @return set of cluster members
15 */
16 Set<ControllerInstance> getInstances();
17
18 /**
19 * Returns the availability state of the specified controller instance.
20 *
21 * @return availability state
22 */
23 ControllerInstance.State getState(ControllerInstance instance);
24 // TODO: determine if this would be better attached to ControllerInstance directly
25
26
27 // addListener, removeListener
28
29}