Package org.onosproject.net.flow
Class DefaultTableStatisticsEntry
- java.lang.Object
-
- org.onosproject.net.flow.DefaultTableStatisticsEntry
-
- All Implemented Interfaces:
TableStatisticsEntry
public final class DefaultTableStatisticsEntry extends Object implements TableStatisticsEntry
Default implementation of table statistics entry interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultTableStatisticsEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
tableId
public int tableId()
Description copied from interface:TableStatisticsEntry
Returns the integer table id.- Specified by:
tableId
in interfaceTableStatisticsEntry
- Returns:
- integer table id
-
table
public TableId table()
Description copied from interface:TableStatisticsEntry
Returns the table id.- Specified by:
table
in interfaceTableStatisticsEntry
- Returns:
- table id
-
activeFlowEntries
public long activeFlowEntries()
Description copied from interface:TableStatisticsEntry
Returns the number of active flow entries in this table.- Specified by:
activeFlowEntries
in interfaceTableStatisticsEntry
- Returns:
- the number of active flow entries
-
packetsLookedup
public long packetsLookedup()
Description copied from interface:TableStatisticsEntry
Returns the number of packets looked up in the table.- Specified by:
packetsLookedup
in interfaceTableStatisticsEntry
- Returns:
- the number of packets looked up in the table
-
packetsMatched
public long packetsMatched()
Description copied from interface:TableStatisticsEntry
Returns the number of packets that successfully matched in the table.- Specified by:
packetsMatched
in interfaceTableStatisticsEntry
- Returns:
- the number of packets that successfully matched in the table
-
deviceId
public DeviceId deviceId()
Description copied from interface:TableStatisticsEntry
Returns the device Id.- Specified by:
deviceId
in interfaceTableStatisticsEntry
- Returns:
- device id
-
maxSize
public long maxSize()
Description copied from interface:TableStatisticsEntry
Returns the maximum size of this table.- Specified by:
maxSize
in interfaceTableStatisticsEntry
- Returns:
- the maximum size of this table
-
hasPacketsLookedup
public boolean hasPacketsLookedup()
Description copied from interface:TableStatisticsEntry
To check whether packetLookedUp is present in this TableStatisticsEntry.- Specified by:
hasPacketsLookedup
in interfaceTableStatisticsEntry
- Returns:
- true if packetLookedUp is present, otherwise false;
-
hasMaxSize
public boolean hasMaxSize()
Description copied from interface:TableStatisticsEntry
To check whether maxSize is present in this TableStatisticsEntry.- Specified by:
hasMaxSize
in interfaceTableStatisticsEntry
- Returns:
- true if maxSize is present, otherwise false;
-
builder
public static DefaultTableStatisticsEntry.Builder builder()
-
-