Class GridJobExecuteResponse

    • Constructor Detail

      • GridJobExecuteResponse

        public GridJobExecuteResponse()
        No-op constructor to support Externalizable interface. This constructor is not meant to be used for other purposes.
      • GridJobExecuteResponse

        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)
        Parameters:
        nodeId - Sender node ID.
        sesId - Task session ID
        jobId - 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.
    • Method Detail

      • getSessionId

        public IgniteUuid getSessionId()
        Returns:
        Task session ID.
      • getJobId

        public IgniteUuid getJobId()
        Returns:
        Job ID.
      • getJobResultBytes

        @Nullable
        public @org.jetbrains.annotations.Nullable byte[] getJobResultBytes()
        Returns:
        Serialized job result.
      • getJobResult

        @Nullable
        public @Nullable Object getJobResult()
        Returns:
        Job result.
      • getExceptionBytes

        @Nullable
        public @org.jetbrains.annotations.Nullable byte[] getExceptionBytes()
        Returns:
        Serialized job exception.
      • getException

        @Nullable
        public @Nullable IgniteException getException()
        Returns:
        Job exception.
      • getJobAttributesBytes

        @Nullable
        public @org.jetbrains.annotations.Nullable byte[] getJobAttributesBytes()
        Returns:
        Serialized job attributes.
      • getJobAttributes

        @Nullable
        public @Nullable Map<Object,​Object> getJobAttributes()
        Returns:
        Job attributes.
      • isCancelled

        public boolean isCancelled()
        Returns:
        Job cancellation status.
      • getNodeId

        public UUID getNodeId()
        Returns:
        Sender node ID.
      • getFakeException

        public IgniteException getFakeException()
        Returns:
        Fake exception.
      • setFakeException

        public void setFakeException​(IgniteException fakeEx)
        Parameters:
        fakeEx - Fake exception.
      • retry

        public boolean retry()
        Returns:
        True if need retry job.
      • getRetryTopologyVersion

        public AffinityTopologyVersion getRetryTopologyVersion()
        Returns:
        Topology version for that specified partitions haven't been reserved on the affinity node.
      • 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.