|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umich.cac.xml.PbsToGrid
Converts PBS XML file to UsageRecord GGF WG format. Before the conversion is done this program will insert two elements: /pbs_jobfile/ppn -- the number of processors on each node. /pbs_jobfile/machine_name -- the name of the machine. This should be the same as the URWG MachineName element.
Additionally, the timestamps will be converted from epoch time to xsd:dateTime format. This is done for the elements: ctime, etime, qtime, start, end. Each of these elements will be restructured as: <time_element>/epoch -- The value in epoch time <time_element>/datetime -- the value in xsd:dateTime format.
Further, the <nodegroup> elements will have an extra attribute added called 'processors' which is the product of the numnodes attribute and ppn (the attribute or the default value if the attribute is not present).
Note this borrowed heavily from PbsToJoblog.java. The usage is
java umich.cac.xml.PbsToGrid <pbs xml file> <output file> <machine name> <ppn>
Constructor Summary | |
PbsToGrid()
|
Method Summary | |
void |
convertToGrid()
|
org.w3c.dom.Document |
getOutput()
|
static void |
main(java.lang.String[] args)
Main. |
void |
setInputDOM(org.w3c.dom.Document doc)
|
boolean |
setInputFile(java.lang.String xmlFile)
|
void |
setMachineName(java.lang.String name)
|
void |
setPPN(int ppn)
|
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 PbsToGrid()
Method Detail |
public static void usage()
public void setPPN(int ppn)
public void setMachineName(java.lang.String name)
public boolean setInputFile(java.lang.String xmlFile)
public void setInputDOM(org.w3c.dom.Document doc)
public org.w3c.dom.Document getOutput()
public static void main(java.lang.String[] args)
java umich.cac.xml.PbsToGrid
args
- argument one is XML file, argument two is output filepublic void convertToGrid() throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |