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 PiCounterCellId
cellId()
Returns the cell identifier.PiCounterCellData
data()
Returns the data contained by this cell.boolean
equals(java.lang.Object o)
PiCounterCellHandle
handle(DeviceId deviceId)
Returns a handle for this PI entity and the given device ID.int
hashCode()
PiEntityType
piEntityType()
Returns the type of this entity.java.lang.String
toString()
-
-
-
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:PiEntity
Returns the type of this entity.- Specified by:
piEntityType
in interfacePiEntity
- Returns:
- entity type
-
handle
public PiCounterCellHandle handle(DeviceId deviceId)
Description copied from interface:PiEntity
Returns a handle for this PI entity and the given device ID.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-