public class IgfsJobImpl extends Object implements ComputeJob, GridInternalWrapper<IgfsJob>
Constructor and Description |
---|
IgfsJobImpl(IgfsJob job,
String igfsName,
IgfsPath path,
long start,
long len,
IgfsRecordResolver rslvr) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
This method is called when system detects that completion of this
job can no longer alter the overall outcome (for example, when parent task
has already reduced the results).
|
Object |
execute()
Executes this job.
|
IgfsJob |
userObject()
Get user object where resources must be injected.
|
public IgfsJobImpl(IgfsJob job, String igfsName, IgfsPath path, long start, long len, IgfsRecordResolver rslvr)
job
- IGFS job.igfsName
- IGFS name.path
- Split path.start
- Split start offset.len
- Split length.rslvr
- IGFS split resolver.public Object execute()
execute
in interface ComputeJob
null
). This result will be returned
in ComputeJobResult.getData()
method passed into
ComputeTask.result(ComputeJobResult, List)
task method on caller node.public void cancel()
IgniteFuture.cancel()
is called.
Note that job cancellation is only a hint, and just like with
Thread.interrupt()
method, it is really up to the actual job
instance to gracefully finish execution and exit.
cancel
in interface ComputeJob
public IgfsJob userObject()
userObject
in interface GridInternalWrapper<IgfsJob>
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017