public class GridifyJobAdapter extends ComputeJobAdapter
gridify
jobs. In addition to
functionality provided in ComputeJobAdapter
adapter, this adapter
provides default implementation of execute()
method,
which reflectively executes grid-enabled method based on information provided
in GridifyArgument
parameter.
Note this adapter is only useful when passing GridifyArgument
to
remote jobs. In many cases, remote jobs will not require GridifyArgument
as they will execute their code without reflection, hence the regular
ComputeJobAdapter
should be used.
See Gridify
documentation for more information about execution of
gridified
methods.
Gridify
,
Serialized FormConstructor and Description |
---|
GridifyJobAdapter(GridifyArgument arg)
Initializes job with argument.
|
Modifier and Type | Method and Description |
---|---|
Object |
execute()
Provides default implementation for execution of grid-enabled methods.
|
argument, call, cancel, isCancelled, setArguments
public GridifyJobAdapter(GridifyArgument arg)
arg
- Job argument.public Object execute()
GridifyArgument
type. It attempts to reflectively execute a method based on information
provided in the argument and returns the return value of the method.
If some exception occurred during execution, then it will be thrown out of this method.
null
). This result will be returned
in ComputeJobResult.getData()
method passed into
ComputeTask.result(ComputeJobResult, List)
task method on caller node.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017