Class NiciraLoad
- java.lang.Object
-
- org.onosproject.net.flow.AbstractExtension
-
- org.onosproject.driver.extensions.NiciraLoad
-
- All Implemented Interfaces:
org.onosproject.net.flow.Extension,org.onosproject.net.flow.instructions.ExtensionTreatment
public class NiciraLoad extends org.onosproject.net.flow.AbstractExtension implements org.onosproject.net.flow.instructions.ExtensionTreatmentNicira load extension instruction.
-
-
Constructor Summary
Constructors Constructor Description NiciraLoad()Empty constructor.NiciraLoad(int ofsNbits, long dst, long value)Creates a new load treatment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(byte[] data)longdst()Gets load destination.booleanequals(java.lang.Object o)inthashCode()intofsNbits()Gets load nBits.byte[]serialize()java.lang.StringtoString()org.onosproject.net.flow.instructions.ExtensionTreatmentTypetype()longvalue()Gets load value.-
Methods inherited from class org.onosproject.net.flow.AbstractExtension
getProperties, getPropertyValue, setPropertyValue
-
-
-
-
Method Detail
-
ofsNbits
public int ofsNbits()
Gets load nBits.- Returns:
- nBits
-
dst
public long dst()
Gets load destination.- Returns:
- load destination
-
value
public long value()
Gets load value.- Returns:
- load value
-
type
public org.onosproject.net.flow.instructions.ExtensionTreatmentType type()
- Specified by:
typein interfaceorg.onosproject.net.flow.instructions.ExtensionTreatment
-
serialize
public byte[] serialize()
- Specified by:
serializein interfaceorg.onosproject.net.flow.Extension
-
deserialize
public void deserialize(byte[] data)
- Specified by:
deserializein interfaceorg.onosproject.net.flow.Extension
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-