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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
WorkCompletion.Opcode
The operation that the corresponding Work Request performed.static class
WorkCompletion.Status
Defines various work completion status events.
-
Constructor Summary
Constructors Constructor and Description WorkCompletion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description WorkCompletion
clone()
int
getByteLength()
The number of bytes sent or received.WorkCompletion.Opcode
getOpcode()
Represents the opcode of the original operation for this completion event.int
getQueuePairNum()
The identifier of the QP where the work request was originally posted.int
getSrcQueuePair()
The identifier of the shared receive queue where the work request was originally posted.WorkCompletion.Status
getStatus()
The status of this work completion.int
getVendorError()
Vendor specific error.int
getWorkCompletionFlags()
Get work completion flag.short
getWorkCompletionQueueIndex()
The queue index of this work completion event.long
getWorkRequestId()
Gets the work request id.boolean
isSend()
Checks if this completion event is due to a send operation.
-
-
-
Method Detail
-
clone
public WorkCompletion clone()
- Overrides:
clone
in classjava.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
-
-