public class GridJobWorker extends GridWorker implements GridTimeoutObject
isCancelled| Modifier and Type | Method and Description |
|---|---|
protected void |
body()
The implementation should provide the execution body for this runnable.
|
void |
cancel()
Cancels this runnable interrupting actual runner.
|
void |
cancel(boolean sys) |
long |
endTime() |
void |
execute()
Executes the job.
|
String |
executorName() |
long |
getCreateTime() |
GridDeployment |
getDeployment() |
long |
getFinishTime() |
@Nullable ComputeJob |
getJob()
Gets deployed job or
null of job could not be deployed. |
ComputeJobContext |
getJobContext() |
IgniteUuid |
getJobId() |
GridReservable |
getPartsReservation() |
GridJobSessionImpl |
getSession() |
long |
getStartTime() |
ClusterNode |
getTaskNode() |
int |
hashCode() |
boolean |
held() |
boolean |
hold()
Sets halt flags.
|
boolean |
isFinishing()
Gets job finishing state.
|
boolean |
isInternal() |
boolean |
isStarted() |
boolean |
isTimedOut() |
void |
onStopping()
Callback for whenever grid is stopping.
|
void |
onTimeout()
Timeout callback.
|
IgniteUuid |
timeoutId() |
String |
toString() |
blockingSectionBegin, blockingSectionEnd, cleanup, heartbeatTs, igniteInstanceName, isCancelled, isDone, join, name, onIdle, run, runner, updateHeartbeat@Nullable public @Nullable ComputeJob getJob()
null of job could not be deployed.public GridDeployment getDeployment()
public long getCreateTime()
public long getStartTime()
public long getFinishTime()
public boolean isStarted()
public GridReservable getPartsReservation()
public IgniteUuid getJobId()
public ComputeJobContext getJobContext()
public GridJobSessionImpl getSession()
public boolean isFinishing()
true if job is being finished after execution
and false otherwise.public ClusterNode getTaskNode()
public long endTime()
endTime in interface GridTimeoutObjectpublic IgniteUuid timeoutId()
timeoutId in interface GridTimeoutObjectpublic boolean isTimedOut()
True if job is timed out.public boolean isInternal()
True if parent task is internal or Visor-related.public void onTimeout()
onTimeout in interface GridTimeoutObjectpublic void onStopping()
public boolean held()
True if job was halted.public boolean hold()
protected void body()
body in class GridWorkerpublic void execute()
public void cancel()
cancel in class GridWorkerpublic void cancel(boolean sys)
sys - System flag.public String executorName()
public String toString()
toString in class GridWorker
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021