|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumich.cac.queryengine.QueryEngineDigester
Responsible for parsing the XML configuration file.
Creates the appropriate objects based on the configuration data.
Constructor Summary | |
QueryEngineDigester()
|
Method Summary | |
void |
addDataSource(java.lang.String name,
java.lang.String driver,
java.lang.String url,
java.lang.String userName,
java.lang.String password,
java.lang.String schema)
Create a DataSource object from the config file. |
java.lang.String |
getConfigFile()
Return the config file that was configured |
DataSource |
getDataSource()
Return a DataSource object created after parsing the config file. |
java.util.logging.Level |
getDebugLevel()
Returns the debug level. |
java.lang.String |
getReportModule()
Returns the full name of the report module class, like umich.cac.queryengine.LookupService |
java.lang.String |
getUserReportTitle()
Get the title for the user report. |
boolean |
run()
Read the config file, and create the appropriate Objects |
void |
setConfigFile(java.lang.String configFile)
Set the config file to use, override the default "QueryEngineconfig.xml" |
void |
setDebugLevel(java.lang.String debugLevelString)
Set the debugging level to use for Java logging facility. |
void |
setReportModule(java.lang.String reportModule)
Sets the full class name for the reporting module to use for the report |
void |
setUserReportTitle(java.lang.String reportTitle)
Set the title for the user report. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QueryEngineDigester()
Method Detail |
public boolean run()
public void setDebugLevel(java.lang.String debugLevelString)
debugLevelString
- The debug level, like INFO, WARNING, SEVEREpublic void setUserReportTitle(java.lang.String reportTitle)
reportTitle
- The title for the user reportpublic void setReportModule(java.lang.String reportModule)
reportModule
- name of report module class, like umich.cac.queryengine.LookupServicepublic java.lang.String getReportModule()
public java.lang.String getUserReportTitle()
public java.util.logging.Level getDebugLevel() throws java.lang.IllegalStateException
<debugging>SEVERE</debugging>tag.
java.lang.IllegalStateException
- if debugLevel is null, as run() not called yetpublic void setConfigFile(java.lang.String configFile)
configFile
- path the config file to usepublic java.lang.String getConfigFile()
public void addDataSource(java.lang.String name, java.lang.String driver, java.lang.String url, java.lang.String userName, java.lang.String password, java.lang.String schema)
This method is called when the following tag is encountered
<datasource> <name>Xindice
connection parameters</name>
<driver>org.apache.xindice.client.xmldb.DatabaseImpl</driver>
<url>xmldb:xindice:///db/</url>
<username>none</username> <password>none</password>
<collection>morpheus.engin.umich.edu<collection>
</datasource>
name
- A descriptive name for the datasourcedriver
- The XML:DB driver classnameurl
- URL for driver, like xmldb:xindice:///db/userName
- the user name to login, can be nullpassword
- for the given userName, can be nullschema
- schema used
for this datasource connectionpublic DataSource getDataSource() throws java.lang.IllegalStateException
run() must be called before this method is called
java.lang.IllegalStateException
- if dataSource is null, as run() not called
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |