Class PolicingResource
- java.lang.Object
-
- org.onosproject.net.behaviour.trafficcontrol.PolicingResource
-
- All Implemented Interfaces:
NetworkResource
@Beta public final class PolicingResource extends Object implements NetworkResource
Abstraction which encapsulates policer data to be used as network resource.
-
-
Constructor Summary
Constructors Constructor Description PolicingResource(PolicerId pId, ConnectPoint cP)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectPoint
connectPoint()
Returns the connect point of this resource.boolean
equals(Object o)
int
hashCode()
PolicerId
policerId()
Return the policer id of this resource.String
toString()
-
-
-
Constructor Detail
-
PolicingResource
public PolicingResource(PolicerId pId, ConnectPoint cP)
-
-
Method Detail
-
policerId
public PolicerId policerId()
Return the policer id of this resource.- Returns:
- the policer id
-
connectPoint
public ConnectPoint connectPoint()
Returns the connect point of this resource.- Returns:
- the connect point
-
-