| Package | com.esri.bacore.client |
| Class | public final class BatchTaskProcessor |
| Inheritance | BatchTaskProcessor Object |
A BatchTaskProcessor instance is aggregated with an instance of the batch task. The functions specified in the constructor of the batch task processor should have the following signature:
logError(message : String) : void;
prepareCommand(parameters:BatchTaskParameters, taskProvider:Object):BACommand;
resultHandler(asyncToken:AsyncToken) : void;
The taskProvider parameter of the prepareCommand function
is either a task provider function or an object implementing the IBATaskParameters
interface.
| Method | Defined By | ||
|---|---|---|---|
BatchTaskProcessor(batchTask:IEventDispatcher, logError:Function, prepareCommand:Function, resultHandler:Function)
Creates a new instance of the BatchTaskProcessor class. | BatchTaskProcessor | ||
execute(parameters:BatchTaskParameters, responder:IResponder = null):AsyncToken
Executes the batch task. | BatchTaskProcessor | ||
| BatchTaskProcessor | () | Constructor |
public function BatchTaskProcessor(batchTask:IEventDispatcher, logError:Function, prepareCommand:Function, resultHandler:Function)Creates a new instance of the BatchTaskProcessor class.
ParametersbatchTask:IEventDispatcher — An instance of batch task associated with this processor.
| |
logError:Function — An error logging function.
| |
prepareCommand:Function — A function preparing a command to be executed.
| |
resultHandler:Function — A function processing the batch task result.
|
| execute | () | method |
public function execute(parameters:BatchTaskParameters, responder:IResponder = null):AsyncTokenExecutes the batch task.
The responder.fault function is invoked with an instance
of the FaultEvent type and the responder.result function
is invoked with an instance of the BATaskCompletedEvent type.
Parameters
parameters:BatchTaskParameters — Batch task parameters.
| |
responder:IResponder (default = null) — A responder processing events.
|
AsyncToken — Async token associated with the batch task.
|