org.openflow.gui.net.protocol
Class StatsHeader

java.lang.Object
  extended by org.openflow.gui.net.protocol.OFGMessage
      extended by org.openflow.gui.net.protocol.StatsHeader
All Implemented Interfaces:
Message<OFGMessageType>
Direct Known Subclasses:
AggregateStatsReply, AggregateStatsRequest, SwitchDescriptionRequest, SwitchDescriptionStats

public abstract class StatsHeader
extends OFGMessage

Stats related request or reply.

Author:
David Underhill

Field Summary
 long dpid
           
 StatsFlag flags
           
static boolean REPLY
           
static boolean REQUEST
           
 StatsType statsType
           
 
Fields inherited from class org.openflow.gui.net.protocol.OFGMessage
SIZEOF, timeCreated, TSSEP, type, xid
 
Constructor Summary
StatsHeader(boolean request, int xid, java.io.DataInput in)
          used to construct a message being received
StatsHeader(boolean request, int xid, long dpid, StatsType statsType, StatsFlag flags)
           
StatsHeader(boolean request, long dpid, StatsType statsType, StatsFlag flag)
           
 
Method Summary
 int length()
          total length of this message in bytes
 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 org.openflow.gui.net.protocol.OFGMessage
getType, isStatefulReply, isStatefulRequest, timeCreated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REQUEST

public static final boolean REQUEST
See Also:
Constant Field Values

REPLY

public static final boolean REPLY
See Also:
Constant Field Values

dpid

public long dpid

statsType

public StatsType statsType

flags

public StatsFlag flags
Constructor Detail

StatsHeader

public StatsHeader(boolean request,
                   long dpid,
                   StatsType statsType,
                   StatsFlag flag)

StatsHeader

public StatsHeader(boolean request,
                   int xid,
                   long dpid,
                   StatsType statsType,
                   StatsFlag flags)

StatsHeader

public StatsHeader(boolean request,
                   int xid,
                   java.io.DataInput in)
            throws java.io.IOException
used to construct a message being received

Throws:
java.io.IOException
Method Detail

length

public int length()
Description copied from class: OFGMessage
total length of this message in bytes

Overrides:
length in class OFGMessage

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Description copied from class: OFGMessage
sends the message over the specified output stream

Overrides:
write in class OFGMessage
Throws:
java.io.IOException

toString

public java.lang.String toString()
Description copied from class: OFGMessage
String representation of the message including the date and type. Also includes the transaction ID if it is non-zero.

Overrides:
toString in class OFGMessage