Class GridJobCancelRequest

    • Constructor Detail

      • GridJobCancelRequest

        public GridJobCancelRequest()
        No-op constructor to support Externalizable interface. 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. If null, 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:
        True if 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:
        onAckReceived in interface Message
      • writeTo

        public boolean writeTo​(ByteBuffer buf,
                               MessageWriter writer)
        Writes this message to provided byte buffer.
        Specified by:
        writeTo in interface Message
        Parameters:
        buf - Byte buffer.
        writer - Writer.
        Returns:
        Whether message was fully written.
      • readFrom

        public boolean readFrom​(ByteBuffer buf,
                                MessageReader reader)
        Reads this message from provided byte buffer.
        Specified by:
        readFrom in interface Message
        Parameters:
        buf - Byte buffer.
        reader - Reader.
        Returns:
        Whether message was fully read.
      • directType

        public short directType()
        Gets message type.
        Specified by:
        directType in interface Message
        Returns:
        Message type.
      • fieldsCount

        public byte fieldsCount()
        Gets fields count.
        Specified by:
        fieldsCount in interface Message
        Returns:
        Fields count.