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 classDefaultTableStatisticsEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longactiveFlowEntries()Returns the number of active flow entries in this table.static DefaultTableStatisticsEntry.Builderbuilder()DeviceIddeviceId()Returns the device Id.booleanhasMaxSize()To check whether maxSize is present in this TableStatisticsEntry.booleanhasPacketsLookedup()To check whether packetLookedUp is present in this TableStatisticsEntry.longmaxSize()Returns the maximum size of this table.longpacketsLookedup()Returns the number of packets looked up in the table.longpacketsMatched()Returns the number of packets that successfully matched in the table.TableIdtable()Returns the table id.inttableId()Returns the integer table id.StringtoString()
-
-
-
Method Detail
-
tableId
public int tableId()
Description copied from interface:TableStatisticsEntryReturns the integer table id.- Specified by:
tableIdin interfaceTableStatisticsEntry- Returns:
- integer table id
-
table
public TableId table()
Description copied from interface:TableStatisticsEntryReturns the table id.- Specified by:
tablein interfaceTableStatisticsEntry- Returns:
- table id
-
activeFlowEntries
public long activeFlowEntries()
Description copied from interface:TableStatisticsEntryReturns the number of active flow entries in this table.- Specified by:
activeFlowEntriesin interfaceTableStatisticsEntry- Returns:
- the number of active flow entries
-
packetsLookedup
public long packetsLookedup()
Description copied from interface:TableStatisticsEntryReturns the number of packets looked up in the table.- Specified by:
packetsLookedupin interfaceTableStatisticsEntry- Returns:
- the number of packets looked up in the table
-
packetsMatched
public long packetsMatched()
Description copied from interface:TableStatisticsEntryReturns the number of packets that successfully matched in the table.- Specified by:
packetsMatchedin interfaceTableStatisticsEntry- Returns:
- the number of packets that successfully matched in the table
-
deviceId
public DeviceId deviceId()
Description copied from interface:TableStatisticsEntryReturns the device Id.- Specified by:
deviceIdin interfaceTableStatisticsEntry- Returns:
- device id
-
maxSize
public long maxSize()
Description copied from interface:TableStatisticsEntryReturns the maximum size of this table.- Specified by:
maxSizein interfaceTableStatisticsEntry- Returns:
- the maximum size of this table
-
hasPacketsLookedup
public boolean hasPacketsLookedup()
Description copied from interface:TableStatisticsEntryTo check whether packetLookedUp is present in this TableStatisticsEntry.- Specified by:
hasPacketsLookedupin interfaceTableStatisticsEntry- Returns:
- true if packetLookedUp is present, otherwise false;
-
hasMaxSize
public boolean hasMaxSize()
Description copied from interface:TableStatisticsEntryTo check whether maxSize is present in this TableStatisticsEntry.- Specified by:
hasMaxSizein interfaceTableStatisticsEntry- Returns:
- true if maxSize is present, otherwise false;
-
builder
public static DefaultTableStatisticsEntry.Builder builder()
-
-