public abstract class MBodyMeterRequest extends OpenflowStructure implements MultipartBody
Used by the MBodyMeterStatsRequest
and the MBodyMeterConfigRequest.
parseErrorCause, version
Modifier and Type | Method and Description |
---|---|
MeterId |
getMeterId()
Returns the meter id requested; since 1.3
|
int |
getTotalLength()
Returns the total length of the body, in bytes.
|
String |
toString() |
void |
validate()
Validates this structure for completeness and throws an exception
if the structure is considered "not complete".
|
getVersion, hex, hex, incomplete, parseErrorCause, toDebugString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
public int getTotalLength()
MultipartBody
getTotalLength
in interface MultipartBody
public void validate() throws IncompleteStructureException
OpenflowStructure
This default implementation does nothing, i.e. default behavior is that structures are considered complete.
Subclasses should override this method to check that mandatory fields or other internal state is present, throwing an exception if it is not.
validate
in interface MultipartBody
validate
in class OpenflowStructure
IncompleteStructureException
- if the structure is not completepublic String toString()
toString
in class OpenflowStructure
public MeterId getMeterId()
Copyright © 2015. All Rights Reserved.