|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umich.cac.pbs.PbsToXml
This class converts PBS accounting log files into an XML representation.
Usage: java umich.cac.pbs.PbsToXml filename outputfilename
Constructor Summary | |
PbsToXml()
|
Method Summary | |
java.lang.String |
convertToXml(java.lang.String filename)
Convert PBS accounting file to its XML representation |
static void |
main(java.lang.String[] args)
Main class. |
java.lang.String |
processRecord(java.lang.String inputLine)
Process a record from the PBS accounting file, and pass to the appropriate formatter to convert it to XML |
void |
setDTD(java.lang.String dtd)
Set the DTD to use |
void |
setW3CSchema(java.lang.String w3Cschema)
Set the W3C Schema to use |
static void |
usage()
Prints the usage to STDOUT and exits |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PbsToXml()
Method Detail |
public static void usage()
public void setDTD(java.lang.String dtd)
dtd
- name of the dtd to use, like linux_joblog.dtd. This dtd is
added to XML file, if null then it won't be added to XML
file. The file doesn't have to exist at creation timepublic void setW3CSchema(java.lang.String w3Cschema)
w3Cschema
- name of the W3C schema to use, like linux_joblog.xsd. This
schema is added to XML file, if null then it won't be added
to XML file. The file doesn't have to exist at creation timepublic static void main(java.lang.String[] args)
args
- The PBS accounting file to parsepublic java.lang.String processRecord(java.lang.String inputLine) throws InvalidRecordException
inputLine
- inputLine from PBS accounting file to parse
InvalidRecordException
- If the record can not be parsed, or it doesn't have enough
fieldspublic java.lang.String convertToXml(java.lang.String filename)
filename
- Name of the accounting file to parse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |