Package org.onosproject.store.flow
Interface ReplicaInfoService
-
public interface ReplicaInfoService
Service to return where the replica should be placed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(ReplicaInfoEventListener listener)
Adds the specified replica placement info change listener.ReplicaInfo
getReplicaInfoFor(DeviceId deviceId)
Returns the placement information for given Device.void
removeListener(ReplicaInfoEventListener listener)
Removes the specified replica placement info change listener.
-
-
-
Method Detail
-
getReplicaInfoFor
ReplicaInfo getReplicaInfoFor(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
-
-