Package org.onosproject.store.flow
Interface ReplicaInfoService
-
- All Known Implementing Classes:
ReplicaInfoManager
public interface ReplicaInfoServiceService to return where the replica should be placed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(ReplicaInfoEventListener listener)Adds the specified replica placement info change listener.ReplicaInfogetReplicaInfoFor(org.onosproject.net.DeviceId deviceId)Returns the placement information for given Device.voidremoveListener(ReplicaInfoEventListener listener)Removes the specified replica placement info change listener.
-
-
-
Method Detail
-
getReplicaInfoFor
ReplicaInfo getReplicaInfoFor(org.onosproject.net.DeviceId deviceId)
Returns the placement information for given Device.- Parameters:
deviceId- identifier of the device- Returns:
- placement information
-
addListener
void addListener(ReplicaInfoEventListener listener)
Adds the specified replica placement info change listener.- Parameters:
listener- the replica placement info change listener
-
removeListener
void removeListener(ReplicaInfoEventListener listener)
Removes the specified replica placement info change listener.- Parameters:
listener- the replica placement info change listener
-
-