Interface PolicerConfigurable
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
@Beta public interface PolicerConfigurable extends HandlerBehaviour
Behaviour for handling various drivers for policer configurations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPolicer(Policer policer)
PolicerId
allocatePolicerId()
Allocates a new policer id.void
deletePolicer(PolicerId id)
void
freePolicerId(PolicerId id)
Free a policer id.Policer
getPolicer(PolicerId policerId)
java.util.Collection<Policer>
getPolicers()
-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
allocatePolicerId
PolicerId allocatePolicerId()
Allocates a new policer id. There may not be any correspondence with the identifiers of the technology implementing the Policer in the device. Mapping (if necessary) is left to the specific implementation.- Returns:
- the policer id or
PolicerId.NONE
if there is a failure
-
freePolicerId
void freePolicerId(PolicerId id)
Free a policer id. There may not be any correspondence with the identifiers of the technology implementing the Policer in the device. Mapping (if necessary) is left to the specific implementation.- Parameters:
id
- the policer id
-
addPolicer
void addPolicer(Policer policer)
-
deletePolicer
void deletePolicer(PolicerId id)
-
getPolicers
java.util.Collection<Policer> getPolicers()
-
-