Class PolicingResource
- java.lang.Object
-
- org.onosproject.net.behaviour.trafficcontrol.PolicingResource
-
- All Implemented Interfaces:
NetworkResource
@Beta public final class PolicingResource extends java.lang.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 ConnectPointconnectPoint()Returns the connect point of this resource.booleanequals(java.lang.Object o)inthashCode()PolicerIdpolicerId()Return the policer id of this resource.java.lang.StringtoString()
-
-
-
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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-