public interface ResultManager
| Modifier and Type | Method and Description |
|---|---|
int |
downloadResult(int handle)
Download result of the project associated with the handle.
|
int |
downloadResult(int handle,
boolean allowPartial)
Download result of the project associated with the handle.
|
int |
downloadResult(int handle,
boolean allowPartial,
boolean stream)
Download result of the project associated with the handle.
|
int |
getFilesReceived(int handle)
Return the number of files received using stream.
|
java.lang.String[] |
getNewIntermediateResultFilenames(int handle)
Get the intermediate result filenames on the server.
|
java.lang.String[] |
getNewIntermediateResultFiles(int handle)
Get the intermediate result files.
|
java.lang.String[] |
getNewStreamedResultFiles(int handle)
Get the new files retrieved in streaming mode.
|
java.lang.String |
getResultDirectory(int handle)
Get the directory where results have been unzipped.
|
java.lang.String |
getResultFile(int handle)
Get the project result file.
|
int |
getResultFileCount(int handle)
Get the count of unzipped result files.
|
java.lang.String |
getResultFileName(int handle,
int index)
Get the unzipped result file in specific index.
|
java.lang.String[] |
getResultFiles(int handle)
Get the unzipped result filenames.
|
java.lang.String |
getStreamedResultFileName(int handle,
int index)
Get the streamed result file in specific index.
|
java.lang.String[] |
getStreamedResultFiles(int handle)
Get the files retrieved in streaming mode.
|
int |
getStreamedResultFilesCount(int handle)
Get the count of streamed result files.
|
int |
setAllowPartial(int handle,
boolean allowPartial)
Set allow partial flag.
|
int |
setDownloadDir(int handle,
java.lang.String directory)
Set the download directory for the associated handle.
|
int |
setFilesReceived(int handle,
int count)
Do NOT use unless you know what you are doing!
|
int |
setResultFile(int handle,
java.lang.String file)
Set the result file to point somewhere.
|
int |
setStreamResults(int handle,
boolean streamResults)
Set or unset the stream results bit.
|
int |
setUnzipDir(int handle,
java.lang.String directory)
Set the unzip directory for the associated handle.
|
int |
setUseIntermediateResults(int handle,
boolean useIntermediateResults)
Set or unset the intermediate results bit.
|
int |
unzip(int handle)
Unzip the project zip file associated with the handle.
|
int setStreamResults(int handle,
boolean streamResults)
handle - streamResults - getNewStreamedResultFiles(int)int setUseIntermediateResults(int handle,
boolean useIntermediateResults)
handle - streamResults - getNewIntermediateResultFiles(int)int downloadResult(int handle)
getResultFile to retrieve the filename of the
downloaded result file.
ResultManager result = techila.resultManager();
int statuscode = result.downloadResult(handle);
handle - downloadResult(int, boolean),
setDownloadDir(int, String),
getResultFile(int),
unzip(int)int downloadResult(int handle,
boolean allowPartial)
handle - allowPartial - allow partial resultdownloadResult(int),
setDownloadDir(int, String)int downloadResult(int handle,
boolean allowPartial,
boolean stream)
handle - allowPartial - allow partial resultstream - stream the resultsdownloadResult(int),
setDownloadDir(int, String)java.lang.String getResultFile(int handle)
handle - downloadResult(int)int unzip(int handle)
getResultDirectory and/or getResultFiles
to get the information.handle - downloadResult(int),
getResultFiles(int)java.lang.String getResultDirectory(int handle)
handle - unzip(int)java.lang.String[] getResultFiles(int handle)
handle - unzip(int)java.lang.String[] getNewStreamedResultFiles(int handle)
handle - java.lang.String[] getStreamedResultFiles(int handle)
handle - java.lang.String[] getNewIntermediateResultFiles(int handle)
handle - java.lang.String[] getNewIntermediateResultFilenames(int handle)
handle - java.lang.String getStreamedResultFileName(int handle,
int index)
handle - index - the index of the fileint getStreamedResultFilesCount(int handle)
handle - java.lang.String getResultFileName(int handle,
int index)
handle - index - the index of the file in zipunzip(int)int getResultFileCount(int handle)
handle - unzip(int)int setDownloadDir(int handle,
java.lang.String directory)
handle - directory - int setUnzipDir(int handle,
java.lang.String directory)
handle - directory - int setResultFile(int handle,
java.lang.String file)
handle - file - int getFilesReceived(int handle)
handle - int setFilesReceived(int handle,
int count)
int setAllowPartial(int handle,
boolean allowPartial)
handle - allowPartial -