public class GridJobExecuteResponse extends MessageAdapter implements GridTaskMessage
MessageAdapter.Typereader, readState| Constructor and Description |
|---|
GridJobExecuteResponse()
No-op constructor to support
Externalizable interface. |
GridJobExecuteResponse(UUID nodeId,
IgniteUuid sesId,
IgniteUuid jobId,
byte[] gridExBytes,
IgniteException gridEx,
byte[] resBytes,
Object res,
byte[] jobAttrsBytes,
Map<Object,Object> jobAttrs,
boolean isCancelled) |
| Modifier and Type | Method and Description |
|---|---|
byte |
directType()
Gets message type.
|
IgniteException |
getException() |
byte[] |
getExceptionBytes() |
IgniteException |
getFakeException() |
Map<Object,Object> |
getJobAttributes() |
byte[] |
getJobAttributesBytes() |
IgniteUuid |
getJobId() |
Object |
getJobResult() |
byte[] |
getJobResultBytes() |
UUID |
getNodeId() |
IgniteUuid |
getSessionId() |
boolean |
isCancelled() |
boolean |
readFrom(ByteBuffer buf)
Reads this message from provided byte buffer.
|
void |
setFakeException(IgniteException fakeEx) |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
setReader, skipRecoverypublic GridJobExecuteResponse()
Externalizable interface. This
constructor is not meant to be used for other purposes.public GridJobExecuteResponse(UUID nodeId, IgniteUuid sesId, IgniteUuid jobId, byte[] gridExBytes, IgniteException 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 IgniteUuid getSessionId()
getSessionId in interface GridTaskMessagepublic IgniteUuid getJobId()
@Nullable public byte[] getJobResultBytes()
@Nullable public byte[] getExceptionBytes()
@Nullable public IgniteException getException()
@Nullable public byte[] getJobAttributesBytes()
public boolean isCancelled()
public UUID getNodeId()
public IgniteException getFakeException()
public void setFakeException(IgniteException fakeEx)
fakeEx - Fake exception.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in class MessageAdapterbuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf)
readFrom in class MessageAdapterbuf - Byte buffer.public byte directType()
directType in class MessageAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015