Class GridJobExecuteRequest

    • Constructor Detail

      • GridJobExecuteRequest

        public GridJobExecuteRequest()
        No-op constructor to support Externalizable interface.
      • GridJobExecuteRequest

        public GridJobExecuteRequest​(IgniteUuid sesId,
                                     IgniteUuid jobId,
                                     String taskName,
                                     String userVer,
                                     String taskClsName,
                                     byte[] jobBytes,
                                     ComputeJob job,
                                     long startTaskTime,
                                     long timeout,
                                     @Nullable
                                     @Nullable Collection<UUID> top,
                                     @Nullable
                                     @Nullable IgnitePredicate<ClusterNode> topPred,
                                     byte[] topPredBytes,
                                     byte[] siblingsBytes,
                                     Collection<ComputeJobSibling> siblings,
                                     byte[] sesAttrsBytes,
                                     Map<Object,​Object> sesAttrs,
                                     byte[] jobAttrsBytes,
                                     Map<? extends Serializable,​? extends Serializable> jobAttrs,
                                     String cpSpi,
                                     IgniteUuid clsLdrId,
                                     DeploymentMode depMode,
                                     boolean dynamicSiblings,
                                     Map<UUID,​IgniteUuid> ldrParticipants,
                                     boolean forceLocDep,
                                     boolean sesFullSup,
                                     boolean internal,
                                     @Nullable
                                     @org.jetbrains.annotations.Nullable int[] cacheIds,
                                     int part,
                                     @Nullable
                                     @Nullable AffinityTopologyVersion topVer,
                                     @Nullable
                                     @Nullable String execName)
        Parameters:
        sesId - Task session ID.
        jobId - Job ID.
        taskName - Task name.
        userVer - Code version.
        taskClsName - Fully qualified task name.
        jobBytes - Job serialized body.
        job - Job.
        startTaskTime - Task execution start time.
        timeout - Task execution timeout.
        top - Topology.
        topPred - Topology predicate.
        topPredBytes - Marshalled topology predicate.
        siblingsBytes - Serialized collection of split siblings.
        siblings - Collection of split siblings.
        sesAttrsBytes - Map of session attributes.
        sesAttrs - Session attributes.
        jobAttrsBytes - Job context attributes.
        jobAttrs - Job attributes.
        cpSpi - Collision SPI.
        clsLdrId - Task local class loader id.
        depMode - Task deployment mode.
        dynamicSiblings - True if siblings are dynamic.
        ldrParticipants - Other node class loader IDs that can also load classes.
        forceLocDep - True If remote node should ignore deployment settings.
        sesFullSup - True if session attributes are disabled.
        internal - True if internal job.
        cacheIds - Caches' identifiers to reserve partition.
        part - Partition to lock.
        topVer - Affinity topology version of job mapping.
        execName - The name of the custom named executor.
    • Method Detail

      • getSessionId

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

        public IgniteUuid getJobId()
        Returns:
        Job session ID.
      • getTaskClassName

        public String getTaskClassName()
        Returns:
        Task version.
      • getTaskName

        public String getTaskName()
        Returns:
        Task name.
      • getUserVersion

        public String getUserVersion()
        Returns:
        Task version.
      • getJobBytes

        public byte[] getJobBytes()
        Returns:
        Serialized job bytes.
      • getJob

        public ComputeJob getJob()
        Returns:
        Grid job.
      • getStartTaskTime

        public long getStartTaskTime()
        Returns:
        Task start time.
      • getTimeout

        public long getTimeout()
        Returns:
        Timeout.
      • getCreateTime

        public long getCreateTime()
        Gets this instance creation time.
        Returns:
        This instance creation time.
      • getSiblingsBytes

        public byte[] getSiblingsBytes()
        Returns:
        Serialized collection of split siblings.
      • getSessionAttributesBytes

        public byte[] getSessionAttributesBytes()
        Returns:
        Session attributes.
      • getSessionAttributes

        public Map<Object,​Object> getSessionAttributes()
        Returns:
        Session attributes.
      • getJobAttributesBytes

        public byte[] getJobAttributesBytes()
        Returns:
        Job attributes.
      • getCheckpointSpi

        public String getCheckpointSpi()
        Returns:
        Checkpoint SPI name.
      • getClassLoaderId

        public IgniteUuid getClassLoaderId()
        Returns:
        Task local class loader id.
      • getDeploymentMode

        public DeploymentMode getDeploymentMode()
        Returns:
        Deployment mode.
      • isDynamicSiblings

        public boolean isDynamicSiblings()
        Returns true if siblings list is dynamic, i.e. task is continuous.
        Returns:
        True if siblings list is dynamic.
      • getLoaderParticipants

        public Map<UUID,​IgniteUuid> getLoaderParticipants()
        Returns:
        Node class loader participant map.
      • isForceLocalDeployment

        public boolean isForceLocalDeployment()
        Returns:
        Returns true if deployment should always be used.
      • topology

        @Nullable
        public @Nullable Collection<UUID> topology()
        Returns:
        Topology.
      • getTopologyPredicateBytes

        public byte[] getTopologyPredicateBytes()
        Returns:
        Marshalled topology predicate.
      • isSessionFullSupport

        public boolean isSessionFullSupport()
        Returns:
        True if session attributes are enabled.
      • isInternal

        public boolean isInternal()
        Returns:
        True if internal job.
      • getCacheIds

        public int[] getCacheIds()
        Returns:
        Caches' identifiers to reserve specified partition for job execution.
      • getPartition

        public int getPartition()
        Returns:
        Partitions to lock for job execution.
      • 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.