com.ibm.net.rdma.jverbs.cm
Enum ConnectionEvent.EventType
- java.lang.Object
-
- java.lang.Enum<ConnectionEvent.EventType>
-
- com.ibm.net.rdma.jverbs.cm.ConnectionEvent.EventType
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ConnectionEvent.EventType>
- Enclosing class:
- ConnectionEvent
public static enum ConnectionEvent.EventType extends java.lang.Enum<ConnectionEvent.EventType>
Defines various communication event types constants. Referred from RDMA programming manual.
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description RDMA_CM_EVENT_ADDR_CHANGEThis event is generated when the network device associated with this ID through address resolution changes its hardware address.RDMA_CM_EVENT_ADDR_ERRORThis event is generated on the client (active) side.RDMA_CM_EVENT_ADDR_RESOLVEDThis event is generated on the client (active) side in response to rdma_resolve_addr().RDMA_CM_EVENT_CONNECT_ERRORThis event may be generated on the active or passive side of the connection.RDMA_CM_EVENT_CONNECT_REQUESTThis is generated on the passive side of the connection to notify the user of a new connection request.RDMA_CM_EVENT_CONNECT_RESPONSEThis event may be generated on the active side of the connection to notify the user that the connection request has been successful.RDMA_CM_EVENT_DEVICE_REMOVALThis event is generated when the RDMA CM indicates that the device associated with the rdma_cm_id has been removed.RDMA_CM_EVENT_DISCONNECTEDThis event is generated on both sides of the connection in response to rdma_disconnect().RDMA_CM_EVENT_ESTABLISHEDThis event is generated on both sides of a connection.RDMA_CM_EVENT_MULTICAST_ERRORThis event is generated when an error occurs while attempting to join a multicast group or on an existing multicast group if the group had already been joined.RDMA_CM_EVENT_MULTICAST_JOINThis event is generated in response to rdma_join_multicast().RDMA_CM_EVENT_REJECTEDThis event may be generated on the client (active) side and indicates that a connection request or response has been rejected by the remote device.RDMA_CM_EVENT_ROUTE_ERRORThis is generated on the passive side of the connection to notify the user of a new connection request.RDMA_CM_EVENT_ROUTE_RESOLVEDThis event is generated on the client (active) side in response to rdma_resolve_route().RDMA_CM_EVENT_TIMEWAIT_EXITThis event is generated when the QP associated with the connection has exited its timewait state and is now ready to be re-used.RDMA_CM_EVENT_UNREACHABLEThis event is generated on the active side of a connection.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static ConnectionEvent.EventTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConnectionEvent.EventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RDMA_CM_EVENT_ADDR_CHANGE
public static final ConnectionEvent.EventType RDMA_CM_EVENT_ADDR_CHANGE
This event is generated when the network device associated with this ID through address resolution changes its hardware address. For example, this may happen following bonding fail over.
-
RDMA_CM_EVENT_ADDR_ERROR
public static final ConnectionEvent.EventType RDMA_CM_EVENT_ADDR_ERROR
This event is generated on the client (active) side. It is generated in response to rdma_resolve_addr() in the case where an error occurs. This may happen, for example, if the device cannot be found such as when a user supplies an incorrect device
-
RDMA_CM_EVENT_ADDR_RESOLVED
public static final ConnectionEvent.EventType RDMA_CM_EVENT_ADDR_RESOLVED
This event is generated on the client (active) side in response to rdma_resolve_addr(). It is generated when the system is able to resolve the server address supplied by the client.
-
RDMA_CM_EVENT_CONNECT_ERROR
public static final ConnectionEvent.EventType RDMA_CM_EVENT_CONNECT_ERROR
This event may be generated on the active or passive side of the connection. It is generated when an error occurs while attempting to establish a connection.
-
RDMA_CM_EVENT_CONNECT_REQUEST
public static final ConnectionEvent.EventType RDMA_CM_EVENT_CONNECT_REQUEST
This is generated on the passive side of the connection to notify the user of a new connection request. It indicates that a connection request has been received.
-
RDMA_CM_EVENT_CONNECT_RESPONSE
public static final ConnectionEvent.EventType RDMA_CM_EVENT_CONNECT_RESPONSE
This event may be generated on the active side of the connection to notify the user that the connection request has been successful. The event is only generated on rdma_cm_ids which do not have a QP associated with them.
-
RDMA_CM_EVENT_DEVICE_REMOVAL
public static final ConnectionEvent.EventType RDMA_CM_EVENT_DEVICE_REMOVAL
This event is generated when the RDMA CM indicates that the device associated with the rdma_cm_id has been removed.
-
RDMA_CM_EVENT_DISCONNECTED
public static final ConnectionEvent.EventType RDMA_CM_EVENT_DISCONNECTED
This event is generated on both sides of the connection in response to rdma_disconnect(). The event will be generated to indicate that the connection between the local and remote devices has been disconnected.
-
RDMA_CM_EVENT_ESTABLISHED
public static final ConnectionEvent.EventType RDMA_CM_EVENT_ESTABLISHED
This event is generated on both sides of a connection. It indicates that a connection has been established with the remote end point.
-
RDMA_CM_EVENT_MULTICAST_ERROR
public static final ConnectionEvent.EventType RDMA_CM_EVENT_MULTICAST_ERROR
This event is generated when an error occurs while attempting to join a multicast group or on an existing multicast group if the group had already been joined. When this happens, the multicast group will no longer be accessible and must be rejoined if necessary.
-
RDMA_CM_EVENT_MULTICAST_JOIN
public static final ConnectionEvent.EventType RDMA_CM_EVENT_MULTICAST_JOIN
This event is generated in response to rdma_join_multicast(). It indicates that the multicast join operation has completed successfully.
-
RDMA_CM_EVENT_REJECTED
public static final ConnectionEvent.EventType RDMA_CM_EVENT_REJECTED
This event may be generated on the client (active) side and indicates that a connection request or response has been rejected by the remote device. This may happen for example if an attempt is made to connect with the remote end point on the wrong port.
-
RDMA_CM_EVENT_ROUTE_ERROR
public static final ConnectionEvent.EventType RDMA_CM_EVENT_ROUTE_ERROR
This is generated on the passive side of the connection to notify the user of a new connection request. It indicates that a connection request has been received.
-
RDMA_CM_EVENT_ROUTE_RESOLVED
public static final ConnectionEvent.EventType RDMA_CM_EVENT_ROUTE_RESOLVED
This event is generated on the client (active) side in response to rdma_resolve_route(). It is generated when the system is able to resolve the server address supplied by the client.
-
RDMA_CM_EVENT_TIMEWAIT_EXIT
public static final ConnectionEvent.EventType RDMA_CM_EVENT_TIMEWAIT_EXIT
This event is generated when the QP associated with the connection has exited its timewait state and is now ready to be re-used. After a QP has been disconnected, it is maintained in a timewait state to allow any in flight packets to exit the network. After the timewait state has completed, the rdma_cm will report this event.
-
RDMA_CM_EVENT_UNREACHABLE
public static final ConnectionEvent.EventType RDMA_CM_EVENT_UNREACHABLE
This event is generated on the active side of a connection. It indicates that the (remote) server is unreachable or unable to respond to a connection request.
-
-
Method Detail
-
valueOf
public static ConnectionEvent.EventType 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 ConnectionEvent.EventType[] 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 (ConnectionEvent.EventType c : ConnectionEvent.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
-