|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openflow.gui.net.protocol.OFGMessage
public class OFGMessage
Header for OpenFlow GUI protocol messages.
| Field Summary | |
|---|---|
static int |
SIZEOF
size in bytes of a OFGMessage (when serialized) |
long |
timeCreated
the time this message was created in this application |
protected static java.lang.String |
TSSEP
separator between two toString() operators |
OFGMessageType |
type
type of this message |
int |
xid
transaction id of this message, if any |
| Constructor Summary | |
|---|---|
OFGMessage(OFGMessageType t,
int xid)
used to construct a message |
|
| Method Summary | |
|---|---|
OFGMessageType |
getType()
gets the type associated with this class |
boolean |
isStatefulReply()
returns whether this message is a reply to a stateful exchange (default=false) |
boolean |
isStatefulRequest()
returns whether this message starts a stateful exchange (default=false) |
int |
length()
total length of this message in bytes |
long |
timeCreated()
Gets the time this message was created in this application |
java.lang.String |
toString()
String representation of the message including the date and type. |
void |
write(java.io.DataOutput out)
sends the message over the specified output stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SIZEOF
protected static final java.lang.String TSSEP
public OFGMessageType type
public int xid
public long timeCreated
| Constructor Detail |
|---|
public OFGMessage(OFGMessageType t,
int xid)
| Method Detail |
|---|
public int length()
public OFGMessageType getType()
getType in interface Message<OFGMessageType>public boolean isStatefulRequest()
public boolean isStatefulReply()
public void write(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionpublic long timeCreated()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||