public abstract class VisorJob<A,R> extends GridComputeJobAdapter
| Modifier and Type | Field and Description |
|---|---|
protected GridEx |
g |
protected GridLogger |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
VisorJob(A arg)
Create job with specified argument.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
execute()
Executes this job.
|
protected abstract R |
run(A arg)
Execution logic of concrete task.
|
argument, call, cancel, isCancelled, setArguments@GridInstanceResource protected GridEx g
@GridLoggerResource protected GridLogger log
protected VisorJob(A arg)
arg - Job argument.@Nullable public Object execute() throws GridException
null). This result will be returned
in GridComputeJobResult.getData() method passed into
GridComputeTask.result(GridComputeJobResult, List) task method on caller node.GridException - If job execution caused an exception. This exception will be
returned in GridComputeJobResult.getException() method passed into
GridComputeTask.result(GridComputeJobResult, List) task method on caller node.
If execution produces a RuntimeException or Error, then
it will be wrapped into GridException.protected abstract R run(A arg) throws GridException
GridExceptionCopyright © 2014. All rights reserved.