public final class DefaultTableStatisticsEntry extends Object implements TableStatisticsEntry
Modifier and Type | Class and Description |
---|---|
static class |
DefaultTableStatisticsEntry.Builder |
Constructor and Description |
---|
DefaultTableStatisticsEntry(DeviceId deviceId,
int tableId,
long activeFlowEntries,
long packetsLookedupCount,
long packetsMatchedCount)
Deprecated.
since 1.15, suggest using the Builder class.
|
Modifier and Type | Method and Description |
---|---|
long |
activeFlowEntries()
Returns the number of active flow entries in this table.
|
static DefaultTableStatisticsEntry.Builder |
builder() |
DeviceId |
deviceId()
Returns the device Id.
|
boolean |
hasMaxSize()
To check whether maxSize is present in this TableStatisticsEntry.
|
boolean |
hasPacketsLookedup()
To check whether packetLookedUp is present in this TableStatisticsEntry.
|
long |
maxSize()
Returns the maximum size of this table.
|
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.
|
TableId |
table()
Returns the table id.
|
int |
tableId()
Returns the integer table id.
|
String |
toString() |
@Deprecated public DefaultTableStatisticsEntry(DeviceId deviceId, int tableId, long activeFlowEntries, long packetsLookedupCount, long packetsMatchedCount)
deviceId
- device identifiertableId
- index table identifieractiveFlowEntries
- number of active flow entries in the tablepacketsLookedupCount
- number of packets looked up in tablepacketsMatchedCount
- number of packets that hit tablepublic int tableId()
TableStatisticsEntry
tableId
in interface TableStatisticsEntry
public TableId table()
TableStatisticsEntry
table
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
public long maxSize()
TableStatisticsEntry
maxSize
in interface TableStatisticsEntry
public boolean hasPacketsLookedup()
TableStatisticsEntry
hasPacketsLookedup
in interface TableStatisticsEntry
public boolean hasMaxSize()
TableStatisticsEntry
hasMaxSize
in interface TableStatisticsEntry
public static DefaultTableStatisticsEntry.Builder builder()