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

java.lang.Object
  extended by org.gcube.datatransfer.agent.library.outcome.FileTransferOutcome

public class FileTransferOutcome
extends Object

Author:
Andrea Manzi(CERN)

Constructor Summary
FileTransferOutcome(String fileName)
          Creates an instance with successfully added tree.
 
Method Summary
 String failure()
          Returns the exception raised when unsuccessfully transfer a file.
 String fileName()
          Returns the successfully transfer a file.
 String getException()
           
 String getFilename()
           
 boolean isFailure()
           
 boolean isSuccess()
           
 void setException(String exception)
           
 void setFilename(String filename)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileTransferOutcome

public FileTransferOutcome(String fileName)
Creates an instance with successfully added tree.

Parameters:
tree - the tree
Method Detail

getFilename

public String getFilename()

setFilename

public void setFilename(String filename)

getException

public String getException()

setException

public void setException(String exception)

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

fileName

public String fileName()
Returns the successfully transfer a file.

Returns:
the tree, or null if the outcome indicates a failure

failure

public String failure()
Returns the exception raised when unsuccessfully transfer a file.

Returns:
the exception, or null if the outcome indicates a success

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.