public class GridJobExecuteResponse extends Object implements Message
| 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()
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 Messagepublic byte fieldsCount()
fieldsCount in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 1.2.0-incubating Release Date : June 16 2015