com.infoengine.procunit.task
Class TaskProcessorImpl

java.lang.Object
  extended bycom.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.


Field Summary
private  com.infoengine.log.LogWriter logWriter
           
private  String serviceName
           
private  String taskRoot
           
 
Constructor Summary
TaskProcessorImpl()
           
 
Method Summary
 void initialize(String serviceName, com.infoengine.log.LogWriter log)
          initialize processor
 IeRequest processRequest(Request request)
          Accept a request and build a dynamic task object (SAK.Task) from it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logWriter

private com.infoengine.log.LogWriter logWriter

serviceName

private String serviceName

taskRoot

private String taskRoot
Constructor Detail

TaskProcessorImpl

public TaskProcessorImpl()
Method Detail

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 implementation
log - 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