com.infoengine.procunit.task
Class TaskProcessorImpl
java.lang.Object
com.infoengine.procunit.task.TaskProcessorImpl
- All Implemented Interfaces:
- IeMultithreadedProcessor, IeProcessor
- public class TaskProcessorImpl
- extends Object
- implements IeMultithreadedProcessor
A class that processes requests to execute tasks. Usually, this class
is invoked from the SocketAccess class (com.infoengine.au.SocketAccess) and
is used to implement a network task processor service.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logWriter
private com.infoengine.log.LogWriter logWriter
serviceName
private String serviceName
taskRoot
private String taskRoot
TaskProcessorImpl
public TaskProcessorImpl()
initialize
public void initialize(String serviceName,
com.infoengine.log.LogWriter log)
- initialize processor
- Specified by:
initialize
in interface IeProcessor
- Parameters:
serviceName
- Logical name defined for this implementationlog
- file to write informational and debug messages.
processRequest
public IeRequest processRequest(Request request)
throws IEException
- Accept a request and build a dynamic task object (SAK.Task)
from it. Initialize the task with information found in the
request. Invoke the task. Return the results.
- Specified by:
processRequest
in interface IeProcessor
- Parameters:
request
- the request
- Throws:
IEException
- if something goes wrong while invoking the
compiled task