Yuta HIGUCHI | b25f4da | 2014-10-16 15:09:26 -0700 | [diff] [blame] | 1 | package org.onlab.onos.store.flow; |
| 2 | |
| 3 | import org.onlab.onos.net.DeviceId; |
| 4 | |
| 5 | /** |
Yuta HIGUCHI | 4d18795 | 2014-10-16 19:59:35 -0700 | [diff] [blame] | 6 | * Service to return where the replica should be placed. |
Yuta HIGUCHI | b25f4da | 2014-10-16 15:09:26 -0700 | [diff] [blame] | 7 | */ |
| 8 | public 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 HIGUCHI | 4d18795 | 2014-10-16 19:59:35 -0700 | [diff] [blame] | 18 | |
| 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 HIGUCHI | b25f4da | 2014-10-16 15:09:26 -0700 | [diff] [blame] | 33 | } |