public class GridJobExecuteResponse extends GridTcpCommunicationMessageAdapter implements GridTaskMessage
BIT_SET_NOT_READ, BOOLEAN_ARR_NOT_READ, BYTE_ARR_LIST_NOT_READ, BYTE_ARR_NOT_READ, CACHE_VER_NOT_READ, CHAR_ARR_NOT_READ, CLOCK_DELTA_VER_NOT_READ, commState, DHT_PART_EXCHANGE_ID_NOT_READ, DOUBLE_ARR_NOT_READ, DR_INT_REQ_ENTRY_NOT_READ, ENUM_NOT_READ, FLOAT_ARR_NOT_READ, GRID_UUID_NOT_READ, INT_ARR_NOT_READ, LONG_ARR_NOT_READ, LONG_LIST_NOT_READ, MSG_NOT_READ, NULL, SHORT_ARR_NOT_READ, STR_NOT_READ, UUID_NOT_READ, VAL_BYTES_NOT_READ| Constructor and Description |
|---|
GridJobExecuteResponse()
No-op constructor to support
Externalizable interface. |
GridJobExecuteResponse(UUID nodeId,
GridUuid sesId,
GridUuid jobId,
byte[] gridExBytes,
GridException gridEx,
byte[] resBytes,
Object res,
byte[] jobAttrsBytes,
Map<Object,Object> jobAttrs,
boolean isCancelled) |
| Modifier and Type | Method and Description |
|---|---|
GridTcpCommunicationMessageAdapter |
clone() |
protected void |
clone0(GridTcpCommunicationMessageAdapter _msg)
Clones all fields of the provided message to
this. |
byte |
directType() |
GridException |
getException() |
byte[] |
getExceptionBytes() |
GridException |
getFakeException() |
Map<Object,Object> |
getJobAttributes() |
byte[] |
getJobAttributesBytes() |
GridUuid |
getJobId() |
Object |
getJobResult() |
byte[] |
getJobResultBytes() |
UUID |
getNodeId() |
GridUuid |
getSessionId() |
boolean |
isCancelled() |
boolean |
readFrom(ByteBuffer buf) |
void |
setFakeException(GridException fakeEx) |
String |
toString() |
boolean |
writeTo(ByteBuffer buf) |
arrayIterator, messageReader, messageWriterpublic GridJobExecuteResponse()
Externalizable interface. This
constructor is not meant to be used for other purposes.public GridJobExecuteResponse(UUID nodeId, GridUuid sesId, GridUuid jobId, byte[] gridExBytes, GridException gridEx, byte[] resBytes, Object res, byte[] jobAttrsBytes, Map<Object,Object> jobAttrs, boolean isCancelled)
nodeId - Sender node ID.sesId - Task session IDjobId - Job ID.gridExBytes - Serialized grid exception.gridEx - Grid exception.resBytes - Serialized result.res - Result.jobAttrsBytes - Serialized job attributes.jobAttrs - Job attributes.isCancelled - Whether job was cancelled or not.public GridUuid getSessionId()
getSessionId in interface GridTaskMessagepublic GridUuid getJobId()
@Nullable public byte[] getJobResultBytes()
@Nullable public byte[] getExceptionBytes()
@Nullable public GridException getException()
@Nullable public byte[] getJobAttributesBytes()
public boolean isCancelled()
public UUID getNodeId()
public GridException getFakeException()
public void setFakeException(GridException fakeEx)
fakeEx - Fake exception.public GridTcpCommunicationMessageAdapter clone()
clone in class GridTcpCommunicationMessageAdapterprotected void clone0(GridTcpCommunicationMessageAdapter _msg)
this.clone0 in class GridTcpCommunicationMessageAdapter_msg - Message to clone from.public boolean writeTo(ByteBuffer buf)
writeTo in class GridTcpCommunicationMessageAdapterbuf - Byte buffer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridTcpCommunicationMessageAdapterbuf - Byte buffer.public byte directType()
directType in class GridTcpCommunicationMessageAdapterCopyright © 2014. All rights reserved.