com.bigswitch.floodlight.vendor
Class OFBsnPktinSuppressionSetRequestVendorData
java.lang.Object
com.bigswitch.floodlight.vendor.OFBigSwitchVendorData
com.bigswitch.floodlight.vendor.OFBsnPktinSuppressionSetRequestVendorData
- All Implemented Interfaces:
- OFVendorData
public class OFBsnPktinSuppressionSetRequestVendorData
- extends OFBigSwitchVendorData
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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
OFBsnPktinSuppressionSetRequestVendorData
public OFBsnPktinSuppressionSetRequestVendorData()
OFBsnPktinSuppressionSetRequestVendorData
public OFBsnPktinSuppressionSetRequestVendorData(boolean suppressionEnabled,
short idleTimeout,
short hardTimeout,
short priority,
long cookie)
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 deserializinglength
- 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