Package com.gpudb.filesystem.common
Class Result
java.lang.Object
com.gpudb.filesystem.common.Result
This class encapsulates information about the outcome of an upload or a download operation. It is returned through the callback methods in the interfaces
FileUploadListener and FileDownloadListener for multi-part operations. This is useful if the end user of the API is interested in knowing the outcome of a large file upload/download.Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis is an implementation of theComparatorinterface used to sort the list ofResultobjects returned by background threads downloading parts of a file.Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanbooleanvoidsetDownloadInfo(MultiPartDownloadInfo downloadInfo) voidsetErrorMessage(String errorMessage) voidsetException(Exception exception) voidsetFileName(String fileName) voidsetFullFileNames(List<String> fullFileNames) voidsetMultiPart(boolean multiPart) voidvoidsetSuccessful(boolean successful) voidsetUploadInfo(MultiPartUploadInfo uploadInfo) toString()
Method Details
isSuccessful
public boolean isSuccessful()setSuccessful
public void setSuccessful(boolean successful) isMultiPart
public boolean isMultiPart()setMultiPart
public void setMultiPart(boolean multiPart) getUploadInfo
setUploadInfo
getDownloadInfo
setDownloadInfo