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.Objectpublic int tableId()
TableStatisticsEntrytableId in interface TableStatisticsEntrypublic long activeFlowEntries()
TableStatisticsEntryactiveFlowEntries in interface TableStatisticsEntrypublic long packetsLookedup()
TableStatisticsEntrypacketsLookedup in interface TableStatisticsEntrypublic long packetsMatched()
TableStatisticsEntrypacketsMatched in interface TableStatisticsEntrypublic DeviceId deviceId()
TableStatisticsEntrydeviceId in interface TableStatisticsEntry