Class LacpState


  • public class LacpState
    extends java.lang.Object
    LACP state.
    • Constructor Detail

      • LacpState

        public LacpState()
        Constructs LACP state with zero value.
      • LacpState

        public LacpState​(byte state)
        Constructs LACP state with given value.
        Parameters:
        state - state in byte.
    • Method Detail

      • toByte

        public byte toByte()
        Gets LACP state in byte.
        Returns:
        LACP state
      • isActive

        public boolean isActive()
        Checks if this state has the active flag set.
        Returns:
        true if this state has the active flag set.
      • setActive

        public LacpState setActive​(boolean value)
        Sets active bit.
        Parameters:
        value - desired value
        Returns:
        this
      • isTimeout

        public boolean isTimeout()
        Checks if this state has the timeout flag set. Timeout flag indicates short timeout if set.
        Returns:
        true if this state has the timeout flag set.
      • setTimeout

        public LacpState setTimeout​(boolean value)
        Sets timeout bit.
        Parameters:
        value - desired value
        Returns:
        this
      • isAggregatable

        public boolean isAggregatable()
        Checks if this state has the aggregatable flag set.
        Returns:
        true if this state has the aggregatable flag set.
      • setAggregatable

        public LacpState setAggregatable​(boolean value)
        Sets aggregatable bit.
        Parameters:
        value - desired value
        Returns:
        this
      • isSync

        public boolean isSync()
        Checks if this state has the synchronization flag set.
        Returns:
        true if this state has the synchronization flag set.
      • setSync

        public LacpState setSync​(boolean value)
        Sets sync bit.
        Parameters:
        value - desired value
        Returns:
        this
      • isCollecting

        public boolean isCollecting()
        Checks if this state has the collecting flag set.
        Returns:
        true if this state has the collecting flag set.
      • setCollecting

        public LacpState setCollecting​(boolean value)
        Sets collecting bit.
        Parameters:
        value - desired value
        Returns:
        this
      • isDistributing

        public boolean isDistributing()
        Checks if this state has the distributing flag set.
        Returns:
        true if this state has the distributing flag set.
      • setDistributing

        public LacpState setDistributing​(boolean value)
        Sets distributing bit.
        Parameters:
        value - desired value
        Returns:
        this
      • isDefault

        public boolean isDefault()
        Checks if this state has the default flag set.
        Returns:
        true if this state has the default flag set.
      • setDefault

        public LacpState setDefault​(boolean value)
        Sets default bit.
        Parameters:
        value - desired value
        Returns:
        this
      • isExpired

        public boolean isExpired()
        Checks if this state has the expired flag set.
        Returns:
        true if this state has the expired flag set.
      • setExpired

        public LacpState setExpired​(boolean value)
        Sets expired bit.
        Parameters:
        value - desired value
        Returns:
        this
      • equals

        public boolean equals​(java.lang.Object obj)
        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