blob: e6133482c91d9598ca531328eec0f334af7ce44b [file] [log] [blame]
Yuta HIGUCHIb25f4da2014-10-16 15:09:26 -07001package org.onlab.onos.store.flow;
2
3import org.onlab.onos.net.DeviceId;
4
5/**
Yuta HIGUCHI4d187952014-10-16 19:59:35 -07006 * Service to return where the replica should be placed.
Yuta HIGUCHIb25f4da2014-10-16 15:09:26 -07007 */
8public interface ReplicaInfoService {
9
10 // returns where it should be.
11 /**
12 * Returns the placement information for given Device.
13 *
14 * @param deviceId identifier of the device
15 * @return placement information
16 */
17 ReplicaInfo getReplicaInfoFor(DeviceId deviceId);
Yuta HIGUCHI4d187952014-10-16 19:59:35 -070018
19 /**
20 * Adds the specified replica placement info change listener.
21 *
22 * @param listener the replica placement info change listener
23 */
24 void addListener(ReplicaInfoEventListener listener);
25
26 /**
27 * Removes the specified replica placement info change listener.
28 *
29 * @param listener the replica placement info change listener
30 */
31 void removeListener(ReplicaInfoEventListener listener);
32
Yuta HIGUCHIb25f4da2014-10-16 15:09:26 -070033}