Class LacpBaseTlv

  • All Implemented Interfaces:
    IPacket

    public class LacpBaseTlv
    extends LacpTlv
    Represents LACP ActorInfo or PartnerInfo information.
    • Constructor Detail

      • LacpBaseTlv

        public LacpBaseTlv()
    • Method Detail

      • getSystemPriority

        public short getSystemPriority()
        Gets system priority.
        Returns:
        system priority
      • setSystemPriority

        public LacpBaseTlv setSystemPriority​(short systemPriority)
        Sets system priority.
        Parameters:
        systemPriority - system priority
        Returns:
        this
      • getSystemMac

        public MacAddress getSystemMac()
        Gets system MAC address.
        Returns:
        system MAC address
      • setSystemMac

        public LacpBaseTlv setSystemMac​(MacAddress systemMac)
        Sets system MAC address.
        Parameters:
        systemMac - system MAC
        Returns:
        this
      • getKey

        public short getKey()
        Gets key.
        Returns:
        key
      • setKey

        public LacpBaseTlv setKey​(short key)
        Sets key.
        Parameters:
        key - key
        Returns:
        this
      • getPortPriority

        public short getPortPriority()
        Gets port priority.
        Returns:
        port priority
      • setPortPriority

        public LacpBaseTlv setPortPriority​(short portPriority)
        Sets port priority.
        Parameters:
        portPriority - port priority
        Returns:
        this
      • getPort

        public short getPort()
        Gets port.
        Returns:
        port
      • setPort

        public LacpBaseTlv setPort​(short port)
        Sets port.
        Parameters:
        port - port
        Returns:
        this
      • getState

        public LacpState getState()
        Gets state.
        Returns:
        state
      • setState

        public LacpBaseTlv setState​(byte state)
        Sets state.
        Parameters:
        state - state
        Returns:
        this
      • deserializer

        public static Deserializer<LacpBaseTlv> deserializer()
        Deserializer function for LacpBaseTlv packets.
        Returns:
        deserializer function
      • serialize

        public byte[] serialize()
        Description copied from interface: IPacket
        Sets all payloads parent packet if applicable, then serializes this packet and all payloads.
        Returns:
        a byte[] containing this packet and payloads