com.ibm.net.rdma.jverbs.verbs

Enum PortAttribute.PortState

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static PortAttribute.PortState valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PortAttribute.PortState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • IBV_PORT_ACTIVE

        public static final PortAttribute.PortState IBV_PORT_ACTIVE
        Logical link is Active. The link layer can transmit and receive all packet types
      • IBV_PORT_ACTIVE_DEFER

        public static final PortAttribute.PortState IBV_PORT_ACTIVE_DEFER
        Logical link is in Active Deferred. The logical link was Active, but the physical link suffered from a failure. If the error will be recovered withing a timeout, the logical link will return to IBV_PORT_ACTIVE, otherwise it will move to IBV_PORT_DOWN
      • IBV_PORT_ARMED

        public static final PortAttribute.PortState IBV_PORT_ARMED
        Logical link is Armed. The physical link of the port is up, but the SM haven't yet fully configured the logical link. In this state, the link layer can receive and transmit SMPs and flow control link packets, other types of packets can be received, but discards non SMP packets for sending
      • IBV_PORT_DOWN

        public static final PortAttribute.PortState IBV_PORT_DOWN
        Logical link is down. The physical link of the port is not up. In this state, the link layer discards all packets presented to it for transmission
      • IBV_PORT_INIT

        public static final PortAttribute.PortState IBV_PORT_INIT
        Logical link is Initializing. The physical link of the port is up, but the SM haven't yet configured the logical link. In this state, the link layer can only receive and transmit SMPs and flow control link packets, other types of packets presented to it for transmission are discarded
      • IBV_PORT_NOP

        public static final PortAttribute.PortState IBV_PORT_NOP
        Reserved value, which shouldn't be observed
    • Method Detail

      • valueOf

        public static PortAttribute.PortState valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • values

        public static PortAttribute.PortState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PortAttribute.PortState c : PortAttribute.PortState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared