org.openflow.protocol.statistics
Class OFDescriptionStatistics

java.lang.Object
  extended by org.openflow.protocol.statistics.OFDescriptionStatistics
All Implemented Interfaces:
OFStatistics

public class OFDescriptionStatistics
extends java.lang.Object
implements OFStatistics

Represents an ofp_desc_stats structure

Author:
David Erickson (daviderickson@cs.stanford.edu)

Field Summary
protected  java.lang.String datapathDescription
           
static int DESCRIPTION_STRING_LENGTH
           
protected  java.lang.String hardwareDescription
           
protected  java.lang.String manufacturerDescription
           
static int MINIMUM_LENGTH
           
static int SERIAL_NUMBER_LENGTH
           
protected  java.lang.String serialNumber
           
protected  java.lang.String softwareDescription
           
 
Constructor Summary
OFDescriptionStatistics()
           
OFDescriptionStatistics(OFDescriptionStatistics other)
          Copy constructor
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDatapathDescription()
           
 java.lang.String getHardwareDescription()
           
 int getLength()
          Returns the wire length of this message in bytes
 java.lang.String getManufacturerDescription()
           
 java.lang.String getSerialNumber()
           
 java.lang.String getSoftwareDescription()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFDescriptionStatistics setDatapathDescription(java.lang.String datapathDescription)
           
 OFDescriptionStatistics setHardwareDescription(java.lang.String hardwareDescription)
           
 OFDescriptionStatistics setManufacturerDescription(java.lang.String manufacturerDescription)
           
 OFDescriptionStatistics setSerialNumber(java.lang.String serialNumber)
           
 OFDescriptionStatistics setSoftwareDescription(java.lang.String softwareDescription)
           
 java.lang.String toString()
           
 void writeTo(java.nio.ByteBuffer data)
          Write this message's binary format to the specified ByteBuffer
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DESCRIPTION_STRING_LENGTH

public static int DESCRIPTION_STRING_LENGTH

SERIAL_NUMBER_LENGTH

public static int SERIAL_NUMBER_LENGTH

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

manufacturerDescription

protected java.lang.String manufacturerDescription

hardwareDescription

protected java.lang.String hardwareDescription

softwareDescription

protected java.lang.String softwareDescription

serialNumber

protected java.lang.String serialNumber

datapathDescription

protected java.lang.String datapathDescription
Constructor Detail

OFDescriptionStatistics

public OFDescriptionStatistics()

OFDescriptionStatistics

public OFDescriptionStatistics(OFDescriptionStatistics other)
Copy constructor

Method Detail

getManufacturerDescription

public java.lang.String getManufacturerDescription()
Returns:
the manufacturerDescription

setManufacturerDescription

public OFDescriptionStatistics setManufacturerDescription(java.lang.String manufacturerDescription)
Parameters:
manufacturerDescription - the manufacturerDescription to set

getHardwareDescription

public java.lang.String getHardwareDescription()
Returns:
the hardwareDescription

setHardwareDescription

public OFDescriptionStatistics setHardwareDescription(java.lang.String hardwareDescription)
Parameters:
hardwareDescription - the hardwareDescription to set

getSoftwareDescription

public java.lang.String getSoftwareDescription()
Returns:
the softwareDescription

setSoftwareDescription

public OFDescriptionStatistics setSoftwareDescription(java.lang.String softwareDescription)
Parameters:
softwareDescription - the softwareDescription to set

getSerialNumber

public java.lang.String getSerialNumber()
Returns:
the serialNumber

setSerialNumber

public OFDescriptionStatistics setSerialNumber(java.lang.String serialNumber)
Parameters:
serialNumber - the serialNumber to set

getDatapathDescription

public java.lang.String getDatapathDescription()
Returns:
the datapathDescription

setDatapathDescription

public OFDescriptionStatistics setDatapathDescription(java.lang.String datapathDescription)
Parameters:
datapathDescription - the datapathDescription to set

getLength

public int getLength()
Description copied from interface: OFStatistics
Returns the wire length of this message in bytes

Specified by:
getLength in interface OFStatistics
Returns:
the length

readFrom

public void readFrom(java.nio.ByteBuffer data)
Description copied from interface: OFStatistics
Read this message off the wire from the specified ByteBuffer

Specified by:
readFrom in interface OFStatistics

writeTo

public void writeTo(java.nio.ByteBuffer data)
Description copied from interface: OFStatistics
Write this message's binary format to the specified ByteBuffer

Specified by:
writeTo in interface OFStatistics

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

computeLength

public int computeLength()
Description copied from interface: OFStatistics
Computes, sets and returns the length of this OFStatistics message. The value will be able to be retrieved from OFStatistics.getLength() without recomputing after this method is called.

Specified by:
computeLength in interface OFStatistics
Returns: