Class 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.ExtensionTreatment
    Nicira 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
      void deserialize​(byte[] data)  
      long dst()
      Gets load destination.
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      int ofsNbits()
      Gets load nBits.
      byte[] serialize()  
      java.lang.String toString()  
      org.onosproject.net.flow.instructions.ExtensionTreatmentType type()  
      long value()
      Gets load value.
      • Methods inherited from class org.onosproject.net.flow.AbstractExtension

        getProperties, getPropertyValue, setPropertyValue
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.onosproject.net.flow.Extension

        getProperties, getPropertyValue, setPropertyValue
    • Constructor Detail

      • NiciraLoad

        public NiciraLoad()
        Empty constructor.
      • NiciraLoad

        public NiciraLoad​(int ofsNbits,
                          long dst,
                          long value)
        Creates a new load treatment.
        Parameters:
        ofsNbits - off set and nBits
        dst - destination
        value - value
    • 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:
        type in interface org.onosproject.net.flow.instructions.ExtensionTreatment
      • serialize

        public byte[] serialize()
        Specified by:
        serialize in interface org.onosproject.net.flow.Extension
      • deserialize

        public void deserialize​(byte[] data)
        Specified by:
        deserialize in interface org.onosproject.net.flow.Extension
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object