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
protected VisorJob(@Nullable A arg, boolean debug)
arg
- Job argument.debug
- Flag indicating whether debug information should be printed into node log.@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. 2.0.0 Release Date : April 30 2017