org.gcube.datatransfer.agent.library.outcome
Class TransferOutcome

java.lang.Object
  extended by org.gcube.datatransfer.agent.library.outcome.TransferOutcome
Direct Known Subclasses:
FileTransferOutcome, TreeTransferOutcome

public abstract class TransferOutcome
extends Object


Constructor Summary
TransferOutcome()
           
 
Method Summary
 String failure()
          Returns the exception raised when unsuccessfully transfer a file.
 String getException()
           
 boolean isFailure()
           
 boolean isSuccess()
           
 void setException(String exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferOutcome

public TransferOutcome()
Method Detail

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.