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() |
GridComputeJob |
getJob()
Gets deployed job or
null of job could not be deployed. |
GridComputeJobContext |
getJobContext() |
GridUuid |
getJobId() |
GridJobSessionImpl |
getSession() |
int |
hashCode() |
boolean |
held() |
void |
hold()
Sets halt flags.
|
void |
onStopping()
Callback for whenever grid is stopping.
|
void |
onTimeout()
Timeout callback.
|
GridUuid |
timeoutId() |
String |
toString() |
cleanup, gridName, isCancelled, isDone, join, name, parent, run, runner@Nullable public GridComputeJob getJob()
null of job could not be deployed.public GridDeployment getDeployment()
public GridUuid getJobId()
public GridComputeJobContext getJobContext()
public GridJobSessionImpl getSession()
public long endTime()
endTime in interface GridTimeoutObjectpublic GridUuid timeoutId()
timeoutId in interface GridTimeoutObjectpublic 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 GridWorkerCopyright © 2014. All rights reserved.