A - Job argument type.R - Job result type.public abstract class VisorJob<A,R> extends ComputeJobAdapter
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
debug
Debug flag.
|
protected IgniteEx |
ignite
Auto-injected grid instance.
|
protected long |
start
Job start time.
|
| Modifier | Constructor and Description |
|---|---|
protected |
VisorJob(A arg,
boolean debug)
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 job.
|
argument, call, cancel, isCancelled, setArguments@IgniteInstanceResource protected transient IgniteEx ignite
protected transient long start
protected boolean debug
@Nullable public Object execute()
null). This result will be returned
in ComputeJobResult.getData() method passed into
ComputeTask.result(ComputeJobResult, List) task method on caller node.protected abstract R run(@Nullable A arg) throws IgniteException
arg - Task argument.IgniteException - In case of error.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015