org.genepattern.webservice
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Constructor Summary | |
JobResult(java.net.URL server,
int jobNumber,
java.lang.String[] fileNames,
boolean stdout,
boolean stderr,
Parameter[] parameters,
java.lang.String lsid)
Creates a new JobResult instance. |
|
| Method Summary | |
java.io.File |
downloadFile(java.lang.String fileName,
java.lang.String downloadDirectory)
Downloads the result file from the server to the given download directory. |
java.io.File |
downloadFile(java.lang.String fileName,
java.lang.String downloadDirectory,
boolean overwrite)
Downloads the result file from the server to the given download directory. |
java.io.File[] |
downloadFiles(java.lang.String downloadDirectory)
Downloads all the available result files from the server to the given download directory. |
java.io.File[] |
downloadFiles(java.lang.String downloadDirectory,
boolean overwrite)
Downloads all the available result files from the server to the given download directory. |
int |
getJobNumber()
Gets the job number for this job. |
java.lang.String |
getLSID()
Gets the LSID of the task that produced this job result. |
java.lang.String[] |
getOutputFileNames()
Allocates a new array containing the file names of the output files that this job created excluding the standard output file and the standard error file. |
Parameter[] |
getParameters()
Allocates a new array containing the input parameters that this job was invoked with |
java.net.URL |
getServerURL()
Gets the url of the server that this job was run on. |
java.net.URL |
getURL(int creationOrder)
Returns the url to download the file that was created in the given creation order |
java.net.URL |
getURL(java.lang.String fileName)
Returns the url to download the given file name. |
boolean |
hasStandardError()
Tests whether this job wrote to the standard error stream. |
boolean |
hasStandardOut()
Tests whether this job wrote to the standard output stream. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JobResult(java.net.URL server,
int jobNumber,
java.lang.String[] fileNames,
boolean stdout,
boolean stderr,
Parameter[] parameters,
java.lang.String lsid)
server - The server on which this job was run.jobNumber - The job number of this job.fileNames - The array of file names that this job created.stdout - Whether a standard out file was created.stderr - Whether a standard err file was created.parameters - The parameters that this job was run with.lsid - The LSID of the task that produced this job result.| Method Detail |
public java.lang.String getLSID()
public java.lang.String[] getOutputFileNames()
public Parameter[] getParameters()
public java.net.URL getURL(int creationOrder)
creationOrder - The file creation order, starting at 0.
java.lang.IllegalArgumentException - if creationOrder < 0 or
creatorOrder >= getOutputFileNames().lengthpublic java.net.URL getURL(java.lang.String fileName)
fileName - The file name.
public boolean hasStandardError()
public boolean hasStandardOut()
public java.io.File[] downloadFiles(java.lang.String downloadDirectory)
throws java.io.IOException
downloadDirectory - The pathname of a directory to create the files. The directory
will be created if it does not exist.
java.io.IOException - If an error occurs while downloading the files.
java.lang.NullPointerException - If the downloadDirectory argument is
null
public java.io.File[] downloadFiles(java.lang.String downloadDirectory,
boolean overwrite)
throws java.io.IOException
overwrite is
true, and if
downloadDirectory - The pathname of a directory to create the files. The directory
will be created if it does not exist.overwrite - overwrite existing files if true.
java.io.IOException - If an error occurs while downloading the files.
java.lang.NullPointerException - If the downloadDirectory argument is
null
public java.io.File downloadFile(java.lang.String fileName,
java.lang.String downloadDirectory)
throws java.io.IOException
fileName - The file name.downloadDirectory - The pathname of a directory to create the file. The directory
will be created if it does not exist.
null if the file does not exist on the
server.
java.io.IOException - If an error occurs while downloading the file.
java.lang.NullPointerException - If the fileName or
downloadDirectory arguments are
null
public java.io.File downloadFile(java.lang.String fileName,
java.lang.String downloadDirectory,
boolean overwrite)
throws java.io.IOException
fileName - The file name.downloadDirectory - The pathname of a directory to create the file. The directory
will be created if it does not exist.overwrite - overwrite existing files of the same name
null if the file does not exist on the
server.
java.io.IOException - If an error occurs while downloading the file.
java.lang.NullPointerException - If the fileName or
downloadDirectory arguments are
nullpublic java.net.URL getServerURL()
public int getJobNumber()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||