public class GridJobWorker extends GridWorker implements GridTimeoutObject
| 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.
|
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() |
void |
hold()
Sets halt flags.
|
boolean |
isInternal() |
void |
onStopping()
Callback for whenever grid is stopping.
|
void |
onTimeout()
Timeout callback.
|
IgniteUuid |
timeoutId() |
String |
toString() |
cleanup, gridName, 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 GridTimeoutObjectpublic IgniteUuid timeoutId()
timeoutId in interface GridTimeoutObjectpublic 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 void 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 toString()
toString in class GridWorker
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015