public class GridJobExecuteResponse extends Object implements Message, GridTaskMessage
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.
|
byte |
fieldsCount()
Gets fields count.
|
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,
MessageReader reader)
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.
|
public 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 GridTaskMessage
public 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)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public byte directType()
directType
in interface Message
public byte fieldsCount()
fieldsCount
in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015