public class MBodyMutableTableStats extends MBodyTableStats implements MutableStructure
MBodyTableStats.MBodyTableStats.Array, MBodyTableStats.MutableArrayversion| Constructor and Description |
|---|
MBodyMutableTableStats(ProtocolVersion pv)
Constructs a mutable multipart body TABLE stats element.
|
| Modifier and Type | Method and Description |
|---|---|
MBodyMutableTableStats |
activeCount(long active)
Sets the number of active entries.
|
MBodyMutableTableStats |
lookupCount(long lookup)
Sets the number of packets looked up in the table.
|
MBodyMutableTableStats |
matchedCount(long matched)
Sets the number of packets that hit the table.
|
MBodyMutableTableStats |
maxEntries(long max)
Sets the maximum number of entries supported by this table.
|
MBodyMutableTableStats |
name(String name)
Sets the name of the table; Since 1.0; Removed at 1.3.
|
MBodyMutableTableStats |
tableId(TableId tableId)
Sets the ID of the table; Since 1.0.
|
OpenflowStructure |
toImmutable()
Returns an immutable instance of this structure.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getActiveCount, getLookupCount, getMatchedCount, getMaxEntries, getName, getTableId, getTotalLength, toDebugString, toDebugString, validategetVersion, hex, hexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringpublic MBodyMutableTableStats(ProtocolVersion pv)
A valid TableId must be present
for this element to be valid.
pv - the protocol versionpublic OpenflowStructure toImmutable()
MutableStructure
It is expected that the reference to this mutable structure will be
dropped. Note that all method calls invoked on a
MutableStructure after toImmutable() has been invoked
will result in an InvalidMutableException being thrown.
toImmutable in interface MutableStructurepublic boolean writable()
MutableObject#toImmutable() method (defined on a sub-interface)
has not yet been invoked.writable in interface MutableObjectpublic String toString()
toString in class MBodyTableStatspublic MBodyMutableTableStats tableId(TableId tableId)
tableId - the table IDInvalidMutableException - if this instance is no longer writableNullPointerException - if tableId is nullpublic MBodyMutableTableStats name(String name)
Note that the maximum allowed length of the string is
MpBodyFactory.TABLE_NAME_LEN - 1.
name - the table nameInvalidMutableException - if this instance is no longer writableVersionMismatchException - if version is 1.3 or higherNullPointerException - if name is nullIllegalArgumentException - if string length is >31public MBodyMutableTableStats maxEntries(long max)
max - the maximum number of entriesInvalidMutableException - if this instance is no longer writableVersionMismatchException - if version is 1.3 or higherIllegalArgumentException - if max is not u32public MBodyMutableTableStats activeCount(long active)
active - the number of active entriesInvalidMutableException - if this instance is no longer writableIllegalArgumentException - if active is not u32public MBodyMutableTableStats lookupCount(long lookup)
lookup - the number packets looked upInvalidMutableException - if this instance is no longer writablepublic MBodyMutableTableStats matchedCount(long matched)
matched - the number of table hitsInvalidMutableException - if this instance is no longer writableCopyright © 2014. All Rights Reserved.