com.bigswitch.floodlight.vendor
Class OFBsnPktinSuppressionSetRequestVendorData

java.lang.Object
  extended by com.bigswitch.floodlight.vendor.OFBigSwitchVendorData
      extended by com.bigswitch.floodlight.vendor.OFBsnPktinSuppressionSetRequestVendorData
All Implemented Interfaces:
OFVendorData

public class OFBsnPktinSuppressionSetRequestVendorData
extends OFBigSwitchVendorData


Field Summary
static int BSN_PKTIN_SUPPRESSION_SET_REQUEST
           
protected  long cookie
           
protected  short hardTimeout
           
protected  short idleTimeout
           
protected static Instantiable<OFVendorData> instantiableSingleton
           
protected  short priority
           
protected  boolean suppressionEnabled
           
 
Fields inherited from class com.bigswitch.floodlight.vendor.OFBigSwitchVendorData
BSN_VENDOR_ID, dataType
 
Constructor Summary
OFBsnPktinSuppressionSetRequestVendorData()
           
OFBsnPktinSuppressionSetRequestVendorData(boolean suppressionEnabled, short idleTimeout, short hardTimeout, short priority, long cookie)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getCookie()
           
 short getHardTimeout()
           
 short getIdleTimeout()
           
static Instantiable<OFVendorData> getInstantiable()
           
 int getLength()
          Get the length of the vendor data.
 short getPriority()
           
 int hashCode()
           
 boolean isSuppressionEnabled()
           
 void readFrom(java.nio.ByteBuffer data, int length)
          Read the vendor data from the ByteBuffer
 void setCookie(long cookie)
           
 void setHardTimeout(short hardTimeout)
           
 void setIdleTimeout(short idleTimeout)
           
 void setPriority(short priority)
           
 void setSuppressionEnabled(boolean suppressionEnabled)
           
 void writeTo(java.nio.ByteBuffer data)
          Write the vendor data to the ByteBuffer
 
Methods inherited from class com.bigswitch.floodlight.vendor.OFBigSwitchVendorData
getDataType, setDataType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instantiableSingleton

protected static Instantiable<OFVendorData> instantiableSingleton

BSN_PKTIN_SUPPRESSION_SET_REQUEST

public static final int BSN_PKTIN_SUPPRESSION_SET_REQUEST
See Also:
Constant Field Values

suppressionEnabled

protected boolean suppressionEnabled

idleTimeout

protected short idleTimeout

hardTimeout

protected short hardTimeout

priority

protected short priority

cookie

protected long cookie
Constructor Detail

OFBsnPktinSuppressionSetRequestVendorData

public OFBsnPktinSuppressionSetRequestVendorData()

OFBsnPktinSuppressionSetRequestVendorData

public OFBsnPktinSuppressionSetRequestVendorData(boolean suppressionEnabled,
                                                 short idleTimeout,
                                                 short hardTimeout,
                                                 short priority,
                                                 long cookie)
Method Detail

getInstantiable

public static Instantiable<OFVendorData> getInstantiable()
Returns:
a subclass of Instantiable that instantiates an instance of OFBsnL2TableSetVendorData.

isSuppressionEnabled

public boolean isSuppressionEnabled()

getIdleTimeout

public short getIdleTimeout()

getHardTimeout

public short getHardTimeout()

getPriority

public short getPriority()

getCookie

public long getCookie()

setSuppressionEnabled

public void setSuppressionEnabled(boolean suppressionEnabled)

setIdleTimeout

public void setIdleTimeout(short idleTimeout)

setHardTimeout

public void setHardTimeout(short hardTimeout)

setPriority

public void setPriority(short priority)

setCookie

public void setCookie(long cookie)

getLength

public int getLength()
Description copied from class: OFBigSwitchVendorData
Get the length of the vendor data. This implementation will normally be the superclass for another class that will override this to return the overall vendor data length. This implementation just returns the length of the part that includes the 4-byte integer data type value at the beginning of the vendor data

Specified by:
getLength in interface OFVendorData
Overrides:
getLength in class OFBigSwitchVendorData
Returns:
length of the data

readFrom

public void readFrom(java.nio.ByteBuffer data,
                     int length)
Description copied from class: OFBigSwitchVendorData
Read the vendor data from the ByteBuffer

Specified by:
readFrom in interface OFVendorData
Overrides:
readFrom in class OFBigSwitchVendorData
Parameters:
data - the channel buffer from which we're deserializing
length - the length to the end of the enclosing message

writeTo

public void writeTo(java.nio.ByteBuffer data)
Description copied from class: OFBigSwitchVendorData
Write the vendor data to the ByteBuffer

Specified by:
writeTo in interface OFVendorData
Overrides:
writeTo in class OFBigSwitchVendorData
Parameters:
data - the channel buffer to which we're serializing

hashCode

public int hashCode()
Overrides:
hashCode in class OFBigSwitchVendorData

equals

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