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() |
boolean |
equals(Object obj) |
void |
execute()
Executes the job.
|
String |
executorName() |
GridDeployment |
getDeployment() |
ComputeJob |
getJob()
Gets deployed job or
null of job could not be deployed. |
ComputeJobContext |
getJobContext() |
IgniteUuid |
getJobId() |
GridJobSessionImpl |
getSession() |
int |
hashCode() |
boolean |
held() |
boolean |
hold()
Sets halt flags.
|
boolean |
isInternal() |
void |
onStopping()
Callback for whenever grid is stopping.
|
void |
onTimeout()
Timeout callback.
|
IgniteUuid |
timeoutId() |
String |
toString() |
cleanup, igniteInstanceName, isCancelled, isDone, join, name, run, runner
@Nullable public ComputeJob getJob()
null
of job could not be deployed.public GridDeployment getDeployment()
public IgniteUuid getJobId()
public ComputeJobContext getJobContext()
public GridJobSessionImpl getSession()
public long endTime()
endTime
in interface GridTimeoutObject
public IgniteUuid timeoutId()
timeoutId
in interface GridTimeoutObject
public boolean isInternal()
True
if parent task is internal or Visor-related.public void onTimeout()
onTimeout
in interface GridTimeoutObject
public void onStopping()
public boolean held()
True
if job was halted.public boolean hold()
protected void body()
body
in class GridWorker
public void execute()
public void cancel()
cancel
in class GridWorker
public void cancel(boolean sys)
sys
- System flag.public String executorName()
public String toString()
toString
in class GridWorker
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017