Package org.onosproject.net.pi.runtime
Class PiCounterCell
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiCounterCell
-
-
Constructor Summary
Constructors Constructor Description PiCounterCell(PiCounterCellId cellId, long packets, long bytes)Creates a new counter cell for the given cell identifier, number of packets and bytes.PiCounterCell(PiCounterCellId cellId, PiCounterCellData piCounterCellData)Creates a new counter cell for the given cell identifier and counter cell data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiCounterCellIdcellId()Returns the cell identifier.PiCounterCellDatadata()Returns the data contained by this cell.booleanequals(java.lang.Object o)PiCounterCellHandlehandle(DeviceId deviceId)Returns a handle for this PI entity and the given device ID.inthashCode()PiEntityTypepiEntityType()Returns the type of this entity.java.lang.StringtoString()
-
-
-
Constructor Detail
-
PiCounterCell
public PiCounterCell(PiCounterCellId cellId, PiCounterCellData piCounterCellData)
Creates a new counter cell for the given cell identifier and counter cell data.- Parameters:
cellId- counter cell identifierpiCounterCellData- counter cell data
-
PiCounterCell
public PiCounterCell(PiCounterCellId cellId, long packets, long bytes)
Creates a new counter cell for the given cell identifier, number of packets and bytes.- Parameters:
cellId- counter cell identifierpackets- number of packetsbytes- number of bytes
-
-
Method Detail
-
cellId
public PiCounterCellId cellId()
Returns the cell identifier.- Returns:
- cell identifier
-
data
public PiCounterCellData data()
Returns the data contained by this cell.- Returns:
- counter cell data
-
piEntityType
public PiEntityType piEntityType()
Description copied from interface:PiEntityReturns the type of this entity.- Specified by:
piEntityTypein interfacePiEntity- Returns:
- entity type
-
handle
public PiCounterCellHandle handle(DeviceId deviceId)
Description copied from interface:PiEntityReturns a handle for this PI entity and the given device ID.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-