|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.scheduler.QueryProcessorPipeline
End-to-end query processor pipeline Job Process. Executes a query against a search source and passes the results to an IResultSetProcessor.
XML Configuration Template:
<JobProcess class="com.raritantechnologies.searchApp.scheduler.QueryProcessorPipeline"
searchSource="sourceName"
userName="userName"
password="userPassword" >
<QueryList>
<Query>
<Field ID="[a search field]" value="[value to search]" />
<Field ID="[another field]" value="[value to search]" />
</Query>
<Query>
<Field ID="[a search field]" value="[value to search]" />
<Field ID="[another field]" value="[value to search]" />
</Query>
</QueryList>
<!-- One or more FieldFormatters -->
<FieldFormatter class="[ class of com.raritantechnologies.searchApp.IFieldFormatter ]" >
</FieldFormatter>
<!-- ResultSetProcessor: used for persistence of query results -->
<ResultSetProcessor class="[some IResultSetProcessor instance]" >
<!-- ResultSetProcessor initialization data . . . -->
</ResultSetProcessor>
<!-- Alternately: use GatewayOutputProcessor: used for persistence of query results -->
<GatewayOutputProcessor class="[some IResultSetProcessor instance]" >
<!-- GatewayOutputProcessor initialization data . . . -->
</GatewayOutputProcessor>
<!-- As Reporting Process: need an IReporter and an IDisplayFormRenderer -->
<Reporting name="[ optional name of display form ]"
pageSize="[ optional page size for reporting display pages ]" >
</Reporter class="[ class of com.raritantechnologies.searchApp.reporting.IReporter ]" >
</Reporter>
<DisplayFormRenderer class="[ class of com.raritantechnologies.searchApp.taglibrary.IDisplayFormRenderer ]" >
</DisplayFormRenderer>
</Reporting>
</JobProcess>
| Constructor Summary | |
QueryProcessorPipeline()
|
|
| Method Summary | |
void |
executeJob(RaritanPageContext rpc)
|
void |
executeJob(java.lang.String[] args)
|
void |
executeJob(java.lang.String sessionID,
IReporter reporter,
SourceLoginInfo[] sources,
OrderedMap searchParams,
java.lang.String[] args)
|
java.lang.String |
getConfigurationXML()
|
IGatewayOutputProcessor |
getGatewayOutputProcessor()
|
IQueryList |
getQueryList()
|
IReporter |
getReporter()
returns the IReporter used by this reporting process. |
IResultSetProcessor |
getResultSetProcessor()
|
SourceLoginInfo[] |
getSearchSources()
|
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
setGatewayOutputProcessor(IGatewayOutputProcessor outputProc)
|
void |
setQueryList(IQueryList queryList)
|
void |
setReporter(IReporter reporter)
sets the Reporter to use for data output handling. |
void |
setResultSetProcessor(IResultSetProcessor resSetProc)
|
void |
setSearchParams(OrderedMap searchParams)
|
void |
setSearchSources(SourceLoginInfo[] sources)
|
void |
setSessionID(java.lang.String sessionID)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QueryProcessorPipeline()
| Method Detail |
public void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IJobProcesspublic void executeJob(RaritanPageContext rpc)
executeJob in interface IJobProcesspublic void executeJob(java.lang.String[] args)
executeJob in interface IJobProcesspublic IQueryList getQueryList()
public void setQueryList(IQueryList queryList)
public void setReporter(IReporter reporter)
IReportingProcess
setReporter in interface IReportingProcessreporter - The IReporter object that will handle data saving etc.public IReporter getReporter()
IReportingProcess
getReporter in interface IReportingProcesspublic void setResultSetProcessor(IResultSetProcessor resSetProc)
public IResultSetProcessor getResultSetProcessor()
public void setGatewayOutputProcessor(IGatewayOutputProcessor outputProc)
public IGatewayOutputProcessor getGatewayOutputProcessor()
public void setSearchSources(SourceLoginInfo[] sources)
setSearchSources in interface IReportingProcesspublic SourceLoginInfo[] getSearchSources()
getSearchSources in interface IReportingProcesspublic void setSearchParams(OrderedMap searchParams)
setSearchParams in interface IReportingProcesspublic void setSessionID(java.lang.String sessionID)
setSessionID in interface IReportingProcess
public void executeJob(java.lang.String sessionID,
IReporter reporter,
SourceLoginInfo[] sources,
OrderedMap searchParams,
java.lang.String[] args)
executeJob in interface IReportingProcesspublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IJobProcess
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||