public abstract class Role extends OpenflowMessage
OpenflowMessage.Headerlength| Modifier and Type | Method and Description |
|---|---|
long |
getGenerationId()
Returns master election generation ID; Since 1.2.
|
ControllerRole |
getRole()
Returns the controller role; Since 1.2.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toString() |
void |
validate()
Validates this message for completeness and throws an exception
if the message is considered "not complete".
|
decodeHeader, getType, getVersion, getXid, hex, hex, lengthpublic String toString()
toString in class OpenflowMessagepublic String toDebugString()
OpenflowMessageOpenflowMessage.toString(), but
subclasses are free to override this behavior.toDebugString in interface StructuretoDebugString in class OpenflowMessagepublic void validate()
throws IncompleteMessageException
OpenflowMessageThis default implementation does nothing, i.e. default behavior is that messages 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 class OpenflowMessageIncompleteMessageException - if the message is not completepublic ControllerRole getRole()
public long getGenerationId()
Copyright © 2014. All Rights Reserved.