org.gridbus.broker.farming.alchemi
Class AlchemiXmlParser

java.lang.Object
  extended byorg.gridbus.broker.farming.alchemi.AlchemiXmlParser

public class AlchemiXmlParser
extends java.lang.Object

This class contains methods to parse xml related to Alchemi jobs

Author:
Rajiv Ranjan (rranjan@cs.mu.oz.au)

Constructor Summary
AlchemiXmlParser()
           
 
Method Summary
 void dumpoutput(int p)
          Writes the output into a file in the user home directory
 java.lang.String Gettaskid(org.w3c.dom.Document doc)
          Returns the task ID from the input xml document
 java.lang.String Getuserhome()
          Gets the user home directory
 void Xmltodata(java.lang.String outxml, Job jbw)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlchemiXmlParser

public AlchemiXmlParser()
Method Detail

Gettaskid

public java.lang.String Gettaskid(org.w3c.dom.Document doc)
                           throws org.jaxen.JaxenException
Returns the task ID from the input xml document

Parameters:
doc - - the xml document object
Returns:
- the task id
Throws:
org.jaxen.JaxenException

Getuserhome

public java.lang.String Getuserhome()
Gets the user home directory

Returns:
- the path to the home directory

dumpoutput

public void dumpoutput(int p)
                throws java.io.FileNotFoundException,
                       java.io.IOException
Writes the output into a file in the user home directory

Parameters:
p -
Throws:
java.io.FileNotFoundException
java.io.IOException

Xmltodata

public void Xmltodata(java.lang.String outxml,
                      Job jbw)
               throws org.jaxen.JaxenException,
                      java.lang.NullPointerException,
                      java.io.FileNotFoundException,
                      java.io.IOException
Parameters:
outxml -
jbw -
Throws:
org.jaxen.JaxenException
java.lang.NullPointerException
java.io.FileNotFoundException
java.io.IOException