org.gcube.datatransfer.agent.library.outcome
Class TransferOutcome
java.lang.Object
org.gcube.datatransfer.agent.library.outcome.TransferOutcome
- Direct Known Subclasses:
- FileTransferOutcome, TreeTransferOutcome
public abstract class TransferOutcome
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransferOutcome
public TransferOutcome()
isSuccess
public boolean isSuccess()
- Returns:
true
if the outcome indicates success, false
otherwise
isFailure
public boolean isFailure()
- Returns:
true
if the outcome indicates a failure, false
otherwise
getException
public String getException()
setException
public void setException(String exception)
failure
public String failure()
- Returns the exception raised when unsuccessfully transfer a file.
- Returns:
- the exception, or
null
if the outcome indicates a success
Copyright © 2012. All Rights Reserved.