|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.gridbus.broker.farming.alchemi.AlchemiXmljobwrapper
This class represents the jobWrapper for an Alchemi Job
| Constructor Summary | |
AlchemiXmljobwrapper()
Default constructor |
|
AlchemiXmljobwrapper(java.lang.String planfilepath)
Constructor for this class |
|
| Method Summary | |
java.lang.String |
Base64encoder(java.lang.String Fpath)
Returns a file contents in Base64 format |
void |
closeinputxmltag()
Closes the input start tag |
void |
closeouputxmltag()
Creates the output end tag |
void |
closexmlwriter()
Closes the Alchemi xml job writer and creates the job end tag |
java.lang.String |
Getfilename(java.lang.String absfilepath)
Returns the file name from an absolute path |
void |
intializeinputxmltag()
Creates the input start tag |
void |
intializeouputxmltag()
Creates the output start tag |
void |
intializexmlwriter()
Initialises the Alchemi xml job writer and creates the job start tag |
java.lang.String |
makejobxml(java.lang.String[] input,
int i,
java.lang.String[] output,
int j,
java.lang.String run,
java.lang.String[] inputalias)
Creates the job xml |
java.lang.String |
Planfilereader()
Reads a plan file and generates the input, work, output xml nodes, by calling the appropriate methods to generate the xml nodes. |
void |
readinput(java.io.BufferedReader input)
Creates the input xml nodes from the given input |
void |
readoutput(java.io.BufferedReader input)
Creates the output xml nodes from the given input |
void |
readrun(java.io.BufferedReader input)
Creates the work xml node from the given input |
void |
writeinputfilexmltag(java.lang.String filepath,
java.lang.String actualname)
Creates the input file xml node |
void |
writeoutputfilexmltag(java.lang.String filename)
Creates the output file xml node |
void |
writeworkxmltag(java.lang.String runcmd)
Creates the work xml node |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AlchemiXmljobwrapper()
public AlchemiXmljobwrapper(java.lang.String planfilepath)
planfilepath - - the path of the plan file| Method Detail |
public void intializexmlwriter()
public void closexmlwriter()
public void intializeinputxmltag()
public void closeinputxmltag()
public void writeworkxmltag(java.lang.String runcmd)
runcmd - - the string representing the run command
public void writeinputfilexmltag(java.lang.String filepath,
java.lang.String actualname)
throws java.io.IOException,
java.lang.NullPointerException
filepath - - the input file pathactualname - - actual name of the file
java.io.IOException
java.lang.NullPointerException
public void writeoutputfilexmltag(java.lang.String filename)
throws java.io.IOException
filename - - name of the output file
java.io.IOExceptionpublic void intializeouputxmltag()
public void closeouputxmltag()
throws java.io.IOException
java.io.IOException
public void readinput(java.io.BufferedReader input)
throws java.io.IOException,
java.lang.NullPointerException
input - - the input reader object from which input is read, to generate the xml nodes
java.io.IOException
java.lang.NullPointerException
public void readrun(java.io.BufferedReader input)
throws java.io.IOException,
java.lang.NullPointerException
input - - the input reader object from which input is read, to generate the xml nodes
java.io.IOException
java.lang.NullPointerException
public void readoutput(java.io.BufferedReader input)
throws java.io.IOException,
java.lang.NullPointerException
input - - the input reader object from which input is read, to generate the xml nodes
java.io.IOException
java.lang.NullPointerException
public java.lang.String Getfilename(java.lang.String absfilepath)
throws java.lang.NullPointerException
absfilepath - - the absolute path of the file
java.lang.NullPointerException
public java.lang.String Base64encoder(java.lang.String Fpath)
throws java.io.FileNotFoundException,
java.io.IOException
Fpath - - file path
java.io.FileNotFoundException
java.io.IOException
public java.lang.String Planfilereader()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public java.lang.String makejobxml(java.lang.String[] input,
int i,
java.lang.String[] output,
int j,
java.lang.String run,
java.lang.String[] inputalias)
throws java.io.IOException
input - - the input stringsi - - the count of input stringsoutput - - the output stringj - - the count of output stringsrun - - the run command stringinputalias - - input alias strings
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||