com.ibm.net.rdma.jverbs.verbs
Enum PortAttribute.PortState
- java.lang.Object
-
- java.lang.Enum<PortAttribute.PortState>
-
- com.ibm.net.rdma.jverbs.verbs.PortAttribute.PortState
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<PortAttribute.PortState>
- Enclosing class:
- PortAttribute
public static enum PortAttribute.PortState extends java.lang.Enum<PortAttribute.PortState>
Defines various logical port state constants.
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description IBV_PORT_ACTIVELogical link is Active.IBV_PORT_ACTIVE_DEFERLogical link is in Active Deferred.IBV_PORT_ARMEDLogical link is Armed.IBV_PORT_DOWNLogical link is down.IBV_PORT_INITLogical link is Initializing.IBV_PORT_NOPReserved value, which shouldn't be observed
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static PortAttribute.PortStatevalueOf(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.
-
-
-
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 namejava.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
-
-