public class GridJobExecuteResponse extends Object implements Message
DIRECT_TYPE_SIZE
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,
AffinityTopologyVersion retry) |
Modifier and Type | Method and Description |
---|---|
short |
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() |
AffinityTopologyVersion |
getRetryTopologyVersion() |
IgniteUuid |
getSessionId() |
boolean |
isCancelled() |
void |
onAckReceived()
Method called when ack message received.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
boolean |
retry() |
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, AffinityTopologyVersion retry)
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.retry
- Topology version for that partitions haven't been reserved on the affinity node.public IgniteUuid getSessionId()
public IgniteUuid getJobId()
@Nullable public byte[] getJobResultBytes()
@Nullable public Object getJobResult()
@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 retry()
True
if need retry job.public AffinityTopologyVersion getRetryTopologyVersion()
public void onAckReceived()
onAckReceived
in interface Message
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType
in interface Message
public byte fieldsCount()
fieldsCount
in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018