org.openflow.protocol
Class SwitchDescriptionStats

java.lang.Object
  extended by org.openflow.gui.net.protocol.OFGMessage
      extended by org.openflow.gui.net.protocol.StatsHeader
          extended by org.openflow.protocol.SwitchDescriptionStats
All Implemented Interfaces:
Message<OFGMessageType>

public class SwitchDescriptionStats
extends StatsHeader

OFGMessage containing information about a switch. It is the response to OFPST_DESC statistics request.

Author:
David Underhill

Field Summary
 java.lang.String hw_desc
           
 java.lang.String manufacturer
           
static int MAX_DSEC_STR_LEN
           
 java.lang.String serial_num
           
static int SERIAL_NUM_LEN
           
 java.lang.String sw_desc
           
 
Fields inherited from class org.openflow.gui.net.protocol.StatsHeader
dpid, flags, REPLY, REQUEST, statsType
 
Fields inherited from class org.openflow.gui.net.protocol.OFGMessage
SIZEOF, timeCreated, TSSEP, type, xid
 
Constructor Summary
SwitchDescriptionStats(long dpid, StatsFlag flags, java.io.DataInput in)
          Extract the descriptions from the specified input stream.
 
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.
 
Methods inherited from class org.openflow.gui.net.protocol.StatsHeader
write
 
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

MAX_DSEC_STR_LEN

public static final int MAX_DSEC_STR_LEN
See Also:
Constant Field Values

SERIAL_NUM_LEN

public static final int SERIAL_NUM_LEN
See Also:
Constant Field Values

manufacturer

public final java.lang.String manufacturer

hw_desc

public final java.lang.String hw_desc

sw_desc

public final java.lang.String sw_desc

serial_num

public final java.lang.String serial_num
Constructor Detail

SwitchDescriptionStats

public SwitchDescriptionStats(long dpid,
                              StatsFlag flags,
                              java.io.DataInput in)
                       throws java.io.IOException
Extract the descriptions from the specified input stream.

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 StatsHeader

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 StatsHeader