Package org.apache.ignite.internal
Class GridJobCancelRequest
- java.lang.Object
-
- org.apache.ignite.internal.GridJobCancelRequest
-
- All Implemented Interfaces:
Serializable,Message
public class GridJobCancelRequest extends Object implements Message
Job cancellation request.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description GridJobCancelRequest()No-op constructor to supportExternalizableinterface.GridJobCancelRequest(@Nullable IgniteUuid sesId, @Nullable IgniteUuid jobId)GridJobCancelRequest(@Nullable IgniteUuid sesId, @Nullable IgniteUuid jobId, boolean sys)GridJobCancelRequest(IgniteUuid sesId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortdirectType()Gets message type.bytefieldsCount()Gets fields count.@Nullable IgniteUuidjobId()Gets session ID of job to be cancelled.voidonAckReceived()Method called when ack message received.booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.@Nullable IgniteUuidsessionId()Gets execution ID of task to be cancelled.booleansystem()StringtoString()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Constructor Detail
-
GridJobCancelRequest
public GridJobCancelRequest()
No-op constructor to supportExternalizableinterface. This constructor is not meant to be used for other purposes.
-
GridJobCancelRequest
public GridJobCancelRequest(IgniteUuid sesId)
- Parameters:
sesId- Task session ID.
-
GridJobCancelRequest
public GridJobCancelRequest(@Nullable @Nullable IgniteUuid sesId, @Nullable @Nullable IgniteUuid jobId)- Parameters:
sesId- Task session ID.jobId- Job ID.
-
GridJobCancelRequest
public GridJobCancelRequest(@Nullable @Nullable IgniteUuid sesId, @Nullable @Nullable IgniteUuid jobId, boolean sys)- Parameters:
sesId- Session ID.jobId- Job ID.sys- System flag.
-
-
Method Detail
-
sessionId
@Nullable public @Nullable IgniteUuid sessionId()
Gets execution ID of task to be cancelled.- Returns:
- Execution ID of task to be cancelled.
-
jobId
@Nullable public @Nullable IgniteUuid jobId()
Gets session ID of job to be cancelled. Ifnull, then all jobs for the specified task execution ID will be cancelled.- Returns:
- Execution ID of job to be cancelled.
-
system
public boolean system()
- Returns:
Trueif request to cancel is sent out of system when task has already been reduced and further results are no longer interesting.
-
onAckReceived
public void onAckReceived()
Method called when ack message received.- Specified by:
onAckReceivedin interfaceMessage
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.
-
directType
public short directType()
Gets message type.- Specified by:
directTypein interfaceMessage- Returns:
- Message type.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Returns:
- Fields count.
-
-