public final class DefaultTableStatisticsEntry extends java.lang.Object implements TableStatisticsEntry
Constructor and Description |
---|
DefaultTableStatisticsEntry(DeviceId deviceId,
int tableId,
long activeFlowEntries,
long packetsLookedupCount,
long packetsMatchedCount)
Default table statistics constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
activeFlowEntries()
Returns the number of active flow entries in this table.
|
DeviceId |
deviceId()
Returns the device Id.
|
long |
packetsLookedup()
Returns the number of packets looked up in the table.
|
long |
packetsMatched()
Returns the number of packets that successfully matched in the table.
|
int |
tableId()
Returns the table number.
|
java.lang.String |
toString() |
public DefaultTableStatisticsEntry(DeviceId deviceId, int tableId, long activeFlowEntries, long packetsLookedupCount, long packetsMatchedCount)
deviceId
- device identifiertableId
- table identifieractiveFlowEntries
- number of active flow entries in the tablepacketsLookedupCount
- number of packets looked up in tablepacketsMatchedCount
- number of packets that hit tablepublic java.lang.String toString()
toString
in class java.lang.Object
public int tableId()
TableStatisticsEntry
tableId
in interface TableStatisticsEntry
public long activeFlowEntries()
TableStatisticsEntry
activeFlowEntries
in interface TableStatisticsEntry
public long packetsLookedup()
TableStatisticsEntry
packetsLookedup
in interface TableStatisticsEntry
public long packetsMatched()
TableStatisticsEntry
packetsMatched
in interface TableStatisticsEntry
public DeviceId deviceId()
TableStatisticsEntry
deviceId
in interface TableStatisticsEntry