Package org.apache.ignite.internal
Class GridJobExecuteRequest
- java.lang.Object
-
- org.apache.ignite.internal.GridJobExecuteRequest
-
- All Implemented Interfaces:
Serializable,ExecutorAwareMessage,Message
public class GridJobExecuteRequest extends Object implements ExecutorAwareMessage
Job execution 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 GridJobExecuteRequest()No-op constructor to supportExternalizableinterface.GridJobExecuteRequest(IgniteUuid sesId, IgniteUuid jobId, String taskName, String userVer, String taskClsName, byte[] jobBytes, ComputeJob job, long startTaskTime, long timeout, @Nullable Collection<UUID> top, @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, @org.jetbrains.annotations.Nullable int[] cacheIds, int part, @Nullable AffinityTopologyVersion topVer, @Nullable String execName)
-
Method Summary
-
-
-
Constructor Detail
-
GridJobExecuteRequest
public GridJobExecuteRequest()
No-op constructor to supportExternalizableinterface.
-
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-Trueif siblings are dynamic.ldrParticipants- Other node class loader IDs that can also load classes.forceLocDep-TrueIf remote node should ignore deployment settings.sesFullSup-Trueif session attributes are disabled.internal-Trueif 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.
-
getSiblings
public Collection<ComputeJobSibling> getSiblings()
- Returns:
- Job siblings.
-
getSessionAttributesBytes
public byte[] getSessionAttributesBytes()
- Returns:
- Session attributes.
-
getJobAttributesBytes
public byte[] getJobAttributesBytes()
- Returns:
- Job attributes.
-
getJobAttributes
public Map<? extends Serializable,? extends Serializable> getJobAttributes()
- 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
trueif deployment should always be used.
-
topology
@Nullable public @Nullable Collection<UUID> topology()
- Returns:
- Topology.
-
getTopologyPredicate
public IgnitePredicate<ClusterNode> getTopologyPredicate()
- Returns:
- Topology predicate.
-
getTopologyPredicateBytes
public byte[] getTopologyPredicateBytes()
- Returns:
- Marshalled topology predicate.
-
isSessionFullSupport
public boolean isSessionFullSupport()
- Returns:
Trueif session attributes are enabled.
-
isInternal
public boolean isInternal()
- Returns:
Trueif 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.
-
executorName
public String executorName()
- Specified by:
executorNamein interfaceExecutorAwareMessage- Returns:
- Custom executor name.
nullIn case the custom executor is not provided.
-
getTopVer
public AffinityTopologyVersion getTopVer()
- Returns:
- Affinity version which was used to map job
-
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.
-
-