|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.wrmf.logs.QueryProcessor
executes a query on a log and generates output with matching records. This is converted to html for viewing. xsl is used both to search the log and convert to html
Constructor Summary | |
QueryProcessor()
|
Method Summary | |
void |
applyHTMLConversion(String xmlFilename,
String xslFilename,
String resultHTMLFilename)
convert a log result file to HTML The resulting HTML is controlled by the xsl file. |
(package private) String |
createQueryXsl(String query,
String logdir,
String outputdir,
QueryFileSet files)
|
String |
executeQuery(String query,
String log,
String logdir,
String outputdir,
boolean latestonly,
boolean translateToHTML)
query - xsl condition to select records example: time>'2000/04/27 15:39:35' log - name of the log, example: replication logdir - directory where log files and xsl files are stored. |
String |
executeQueryHTML(String query,
String log,
String logdir,
String outputdir,
boolean latestonly)
returns html filename for results see executeQuery for param details see applyHTMLConversion for HTML details Normally the result file may not contain all the HTML header and trailer tags like etc. |
String |
executeQueryXML(String query,
String log,
String logdir,
String outputdir,
boolean latestonly)
returns xml filename for results see executeQuery for param details |
static void |
main(String[] args)
|
protected void |
writeResultHeaders(QueryFileSet files)
|
protected void |
writeResultTrailers(QueryFileSet files)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QueryProcessor()
Method Detail |
public String executeQueryHTML(String query, String log, String logdir, String outputdir, boolean latestonly) throws IOException
IOException
public String executeQueryXML(String query, String log, String logdir, String outputdir, boolean latestonly) throws IOException
IOException
public String executeQuery(String query, String log, String logdir, String outputdir, boolean latestonly, boolean translateToHTML) throws IOException
IOException
public void applyHTMLConversion(String xmlFilename, String xslFilename, String resultHTMLFilename)
String createQueryXsl(String query, String logdir, String outputdir, QueryFileSet files) throws IOException
IOException
protected void writeResultHeaders(QueryFileSet files) throws IOException
IOException
protected void writeResultTrailers(QueryFileSet files) throws IOException
IOException
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |