org.gcube.datatransfer.agent.library.outcome
Class FileTransferOutcome
java.lang.Object
org.gcube.datatransfer.agent.library.outcome.FileTransferOutcome
public class FileTransferOutcome
- extends Object
- Author:
- Andrea Manzi(CERN)
FileTransferOutcome
public FileTransferOutcome(String fileName)
- Creates an instance with successfully added tree.
- Parameters:
tree
- the tree
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.