public class GridJobCancelRequest extends Object implements Message
DIRECT_TYPE_SIZE
Constructor and Description |
---|
GridJobCancelRequest()
No-op constructor to support
Externalizable interface. |
GridJobCancelRequest(IgniteUuid sesId) |
GridJobCancelRequest(@Nullable IgniteUuid sesId,
@Nullable IgniteUuid jobId) |
GridJobCancelRequest(@Nullable IgniteUuid sesId,
@Nullable IgniteUuid jobId,
boolean sys) |
Modifier and Type | Method and Description |
---|---|
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
@Nullable IgniteUuid |
jobId()
Gets session ID of job to be cancelled.
|
void |
onAckReceived()
Method called when ack message received.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
@Nullable IgniteUuid |
sessionId()
Gets execution ID of task to be cancelled.
|
boolean |
system() |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public GridJobCancelRequest()
Externalizable
interface.
This constructor is not meant to be used for other purposes.public GridJobCancelRequest(IgniteUuid sesId)
sesId
- Task session ID.public GridJobCancelRequest(@Nullable @Nullable IgniteUuid sesId, @Nullable @Nullable IgniteUuid jobId)
sesId
- Task session ID.jobId
- Job ID.public GridJobCancelRequest(@Nullable @Nullable IgniteUuid sesId, @Nullable @Nullable IgniteUuid jobId, boolean sys)
sesId
- Session ID.jobId
- Job ID.sys
- System flag.@Nullable public @Nullable IgniteUuid sessionId()
@Nullable public @Nullable IgniteUuid jobId()
null
, then
all jobs for the specified task execution ID will be cancelled.public boolean system()
True
if request to cancel is sent out of system when task
has already been reduced and further results are no longer interesting.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 Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020