com.ibm.net.rdma.jverbs.verbs

Class WorkCompletion

  • java.lang.Object
    • com.ibm.net.rdma.jverbs.verbs.WorkCompletion


  • public class WorkCompletion
    extends java.lang.Object
    Represents a work completion event. Application will use the pollCQ verbs call to query for completion events. Referred from RDMA programming manual by mellanox.
    • Constructor Detail

      • WorkCompletion

        public WorkCompletion()
    • Method Detail

      • clone

        public WorkCompletion clone()
        Overrides:
        clone in class java.lang.Object
      • getByteLength

        public int getByteLength()
        The number of bytes sent or received.
        Returns:
        the byteLength
      • getOpcode

        public WorkCompletion.Opcode getOpcode()
        Represents the opcode of the original operation for this completion event.
        Returns:
        the opcode
      • getQueuePairNum

        public int getQueuePairNum()
        The identifier of the QP where the work request was originally posted.
        Returns:
        the qpNum. local queue pair (QP) number
      • getSrcQueuePair

        public int getSrcQueuePair()
        The identifier of the shared receive queue where the work request was originally posted.
        Returns:
        the srcQp.Remote QP number
      • getStatus

        public WorkCompletion.Status getStatus()
        The status of this work completion.
        Returns:
        the status
      • getVendorError

        public int getVendorError()
        Vendor specific error.
        Returns:
        the vendorError
      • getWorkCompletionFlags

        public int getWorkCompletionFlags()
        Get work completion flag.
        Returns:
        the work completion flag
      • getWorkCompletionQueueIndex

        public short getWorkCompletionQueueIndex()
        The queue index of this work completion event.
        Returns:
        the wq index
      • getWorkRequestId

        public long getWorkRequestId()
        Gets the work request id. This matches with the id of IbvSendWR or IbvRecvWR and allows application to refer back to the original work request.
        Returns:
        the workRequestId
      • isSend

        public boolean isSend()
        Checks if this completion event is due to a send operation.
        Returns:
        true, if is send