com.raritantechnologies.searchApp.dataCollection
Class SequentialResultProcessor

java.lang.Object
  extended bycom.raritantechnologies.searchApp.dataCollection.SequentialResultProcessor
All Implemented Interfaces:
IConfigurable, IGatewayOutputProcessor, IResultSetProcessor

public class SequentialResultProcessor
extends java.lang.Object
implements IGatewayOutputProcessor, IResultSetProcessor

Implementation of IGatewayOutputProcessor and {com.raritantechnologies.searchApp.IResultSetProcessor} that contains one or more nested IResultSetProcessors in which data processing operations are performed sequentially.

XML Configuration Template:
   <OutputProcessor class="com.raritantechnologies.searchApp.dataCollection.SequentialResultProcessor" >

      <!-- two or more child OutputProcessors that will be executed in sequence -->
      <ResultProcessor class="[ class of com.raritantechnologies.searchApp.IResultSetProcessor ]" >
        <!-- configuration parameters of ResultProcessor -->
      </ResultProcessor>

      <ResultProcessor class="[ class of com.raritantechnologies.searchApp.IResultSetProcessor ]" >
        <!-- configuration parameters of ResultProcessor -->
      </ResultProcessor>

      <!-- etc. . . -->
   </OutputProcessor>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
SequentialResultProcessor()
           
 
Method Summary
 void dataComplete()
          Data feed is complete.
 java.lang.String getConfigurationXML()
           
 void initialize(org.w3c.dom.Element outputProcElem)
          Initialize the from XML Element.
 void initialize(org.w3c.dom.Element outputProcElem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Configuration Element.
 void initialize(java.util.Map initParams)
          Used for dynamic initialization (connection, collection name, file name, etc.)
 java.lang.String processData(IResultSet data)
          returns name of XML File created/appended.
 void processResultSet(java.lang.String sessionID, IResultSet data)
          processes the IResultSet (somehow)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequentialResultProcessor

public SequentialResultProcessor()
Method Detail

processResultSet

public void processResultSet(java.lang.String sessionID,
                             IResultSet data)
Description copied from interface: IResultSetProcessor
processes the IResultSet (somehow)

Specified by:
processResultSet in interface IResultSetProcessor

processData

public java.lang.String processData(IResultSet data)
Description copied from interface: IGatewayOutputProcessor
returns name of XML File created/appended.

Specified by:
processData in interface IGatewayOutputProcessor

dataComplete

public void dataComplete()
Description copied from interface: IGatewayOutputProcessor
Data feed is complete.

Specified by:
dataComplete in interface IGatewayOutputProcessor

initialize

public void initialize(java.util.Map initParams)
Description copied from interface: IGatewayOutputProcessor
Used for dynamic initialization (connection, collection name, file name, etc.)

Specified by:
initialize in interface IGatewayOutputProcessor

initialize

public void initialize(org.w3c.dom.Element outputProcElem,
                       ISearchFieldMap sfMap)
Description copied from interface: IGatewayOutputProcessor
Initialize the GatewayOutputProcessor from XML Configuration Element.

Specified by:
initialize in interface IGatewayOutputProcessor

initialize

public void initialize(org.w3c.dom.Element outputProcElem)
Description copied from interface: IResultSetProcessor
Initialize the from XML Element.

Specified by:
initialize in interface IResultSetProcessor

getConfigurationXML

public java.lang.String getConfigurationXML()
Specified by:
getConfigurationXML in interface IGatewayOutputProcessor