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 ConnectPoint
connectPoint()
Returns the connect point of this resource.boolean
equals(java.lang.Object o)
int
hashCode()
PolicerId
policerId()
Return the policer id of this resource.java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-