org.openflow.protocol
Class OFVendorError

java.lang.Object
  extended by org.openflow.protocol.OFMessage
      extended by org.openflow.protocol.OFError
          extended by org.openflow.protocol.OFVendorError
All Implemented Interfaces:
OFMessageFactoryAware

public class OFVendorError
extends OFError

Represents an ofp_error_vendor_msg

Author:
Srini Seetharaman (srini.seetharaman@gmail.com)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openflow.protocol.OFError
OFError.OFBadActionCode, OFError.OFBadInstructionCode, OFError.OFBadMatchCode, OFError.OFBadRequestCode, OFError.OFErrorType, OFError.OFFlowModFailedCode, OFError.OFGroupModFailedCode, OFError.OFHelloFailedCode, OFError.OFMeterModFailedCode, OFError.OFPortModFailedCode, OFError.OFQueueOpFailedCode, OFError.OFRoleRequestFailedCode, OFError.OFSwitchConfigFailedCode, OFError.OFTableFeaturesFailedCode, OFError.OFTableModFailedCode
 
Field Summary
protected  byte[] errorData
           
protected  short expType
           
static int MINIMUM_LENGTH
           
protected  int vendor
           
 
Fields inherited from class org.openflow.protocol.OFError
error, errorCode, errorIsAscii, errorType, factory
 
Fields inherited from class org.openflow.protocol.OFMessage
length, OFP_VERSION, type, version, xid
 
Constructor Summary
OFVendorError()
           
 
Method Summary
 void computeLength()
          This method is called during the writeTo method for serialization and is expected to set the length of the message.
 boolean equals(java.lang.Object obj)
           
 short getExpType()
          Get in_port
 byte[] getPacketData()
          Returns the packet data
 int getVendor()
          Get vendor_id
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFVendorError setExpType(short expType)
          Set in_port
 OFVendorError setPacketData(byte[] errorData)
          Sets the packet data, and updates the length of this message
 OFVendorError setVendor(int vendor)
          Set vendor_id
 void writeTo(java.nio.ByteBuffer data)
          Write this message's binary format to the specified ByteBuffer
 
Methods inherited from class org.openflow.protocol.OFError
getError, getErrorCode, getErrorCodeName, getErrorType, getFactory, getOffendingMsg, isErrorIsAscii, setError, setErrorCode, setErrorCode, setErrorCode, setErrorCode, setErrorCode, setErrorCode, setErrorCode, setErrorIsAscii, setErrorType, setErrorType, setMessageFactory, setOffendingMsg, toString
 
Methods inherited from class org.openflow.protocol.OFMessage
getLength, getLengthU, getType, getVersion, getXid, setLength, setLengthU, setType, setVersion, setXid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

expType

protected short expType

vendor

protected int vendor

errorData

protected byte[] errorData
Constructor Detail

OFVendorError

public OFVendorError()
Method Detail

getVendor

public int getVendor()
Get vendor_id

Returns:

setVendor

public OFVendorError setVendor(int vendor)
Set vendor_id

Parameters:
vendor -

getPacketData

public byte[] getPacketData()
Returns the packet data

Returns:

setPacketData

public OFVendorError setPacketData(byte[] errorData)
Sets the packet data, and updates the length of this message

Parameters:
errorData -

getExpType

public short getExpType()
Get in_port

Returns:

setExpType

public OFVendorError setExpType(short expType)
Set in_port

Parameters:
expType -

readFrom

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

Overrides:
readFrom in class OFError

writeTo

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

Overrides:
writeTo in class OFError

hashCode

public int hashCode()
Overrides:
hashCode in class OFError

equals

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

computeLength

public void computeLength()
Description copied from class: OFMessage
This method is called during the writeTo method for serialization and is expected to set the length of the message. If your class manually sets the length you should override this to do nothing.

Overrides:
computeLength in class OFError