org.openflow.protocol.statistics
Class OFVendorStatistics

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

public class OFVendorStatistics
extends java.lang.Object
implements OFStatistics

The base class for vendor implemented statistics message

Author:
David Erickson (daviderickson@cs.stanford.edu), Srini Seetharaman (srini.seetharaman@gmail.com)

Field Summary
protected  int length
           
protected static int MINIMUM_LENGTH
           
protected  int vendor
           
protected  byte[] vendorData
           
protected  int vendorType
           
 
Constructor Summary
OFVendorStatistics()
           
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 int getLength()
          Returns the wire length of this message in bytes
 int getVendor()
           
 byte[] getVendorData()
           
 int getVendorType()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 void setLength(int length)
           
 OFVendorStatistics setVendor(int vendor)
           
 OFVendorStatistics setVendorData(byte[] vendorData)
           
 OFVendorStatistics setVendorType(int vendorType)
           
 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, toString, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

protected static int MINIMUM_LENGTH

vendor

protected int vendor

vendorType

protected int vendorType

vendorData

protected byte[] vendorData

length

protected int length
Constructor Detail

OFVendorStatistics

public OFVendorStatistics()
Method Detail

getVendor

public int getVendor()
Returns:
the vendor

setVendor

public OFVendorStatistics setVendor(int vendor)
Parameters:
vendor - the vendor to set

getVendorType

public int getVendorType()
Returns:
the experiment type

setVendorType

public OFVendorStatistics setVendorType(int vendorType)
Parameters:
vendorType - the experiment type to set

getVendorData

public byte[] getVendorData()
Returns:
the vendorData

setVendorData

public OFVendorStatistics setVendorData(byte[] vendorData)
Parameters:
vendorData - the vendorData to set

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

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

setLength

public void setLength(int length)

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: