|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.gridbus.broker.farming.alchemi.AlchemiXmljobwrapper
This class represents the jobWrapper for an Alchemi Job
| Constructor Summary | |
AlchemiXmljobwrapper()
Default constructor |
|
AlchemiXmljobwrapper(java.lang.String taskfilepath)
Constructor for this class |
|
| Method Summary | |
java.lang.String |
appDescfilereader()
Reads a app-description file and generates the input, work, output xml nodes, by calling the appropriate methods to generate the xml nodes. |
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,
boolean isWS)
Creates the job xml |
void |
readinput(java.io.BufferedReader input)
Creates the input xml nodes from the given input |
void |
readoutput(java.io.BufferedReader input,
boolean isWS)
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,
boolean isWS)
Creates the input file xml node |
void |
writemanifestxmltag(java.lang.String filepath,
java.lang.String actualname,
boolean isWS)
|
void |
writeoutputfilexmltag(java.lang.String filename,
boolean isWS)
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 taskfilepath)
taskfilepath - - the path of the appb-description 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,
boolean isWS)
throws java.io.IOException,
java.lang.NullPointerException
filepath - - the input file pathactualname - - actual name of the fileisWS -
java.io.IOException
java.lang.NullPointerException
public void writemanifestxmltag(java.lang.String filepath,
java.lang.String actualname,
boolean isWS)
throws java.io.IOException,
java.lang.NullPointerException
filepath - actualname - isWS -
java.io.IOException
java.lang.NullPointerException
public void writeoutputfilexmltag(java.lang.String filename,
boolean isWS)
throws java.io.IOException
filename - - name of the output fileisWS -
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,
boolean isWS)
throws java.io.IOException,
java.lang.NullPointerException
input - - the input reader object from which input is read, to generate the xml nodesisWS -
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 appDescfilereader()
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,
boolean isWS)
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 stringsisWS -
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||