FileTransferOutcome (The Data transfer common objects 2.0.0-3.7.0 API)
Date: 2015-05-19

org.gcube.datatransfer.common.outcome

## Class FileTransferOutcome

- java.lang.Object
- - org.gcube.datatransfer.common.outcome.TransferOutcome
  - - org.gcube.datatransfer.common.outcome.FileTransferOutcome

- All Implemented Interfaces:
    Serializable

      public class FileTransferOutcome
      extends TransferOutcome

  Author:
    Andrea Manzi(CERN)
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FileTransferOutcome(String fileName)` Creates an instance with successfully added tree.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `fileName()` Returns the successfully transfer a file.
    `String` | `getDest()`
    `String` | `getFilename()`
    `Long` | `getTotal_size()`
    `Long` | `getTransferredBytes()`
    `Long` | `getTransferTime()`
    `void` | `setDest(String dest)`
    `void` | `setFilename(String filename)`
    `void` | `setTotal_size(Long total_size)`
    `void` | `setTransferredBytes(Long transferredBytes)`
    `void` | `setTransferTime(Long transferTime)`
    `String` | `toString()`

    - ### Methods inherited from class org.gcube.datatransfer.common.outcome.TransferOutcome

      `failure, getException, isFailure, isSuccess, setException`

    - ### 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

    - #### getTransferTime

          public Long getTransferTime()

    - #### setTransferTime

          public void setTransferTime(Long transferTime)

    - #### getDest

          public String getDest()

    - #### setDest

          public void setDest(String dest)

    - #### fileName

          public String fileName()

      Returns the successfully transfer a file.
      Returns:
        the tree, or `null` if the outcome indicates a failure

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### getFilename

          public String getFilename()

    - #### setFilename

          public void setFilename(String filename)

    - #### getTransferredBytes

          public Long getTransferredBytes()

    - #### setTransferredBytes

          public void setTransferredBytes(Long transferredBytes)

    - #### getTotal_size

          public Long getTotal_size()

    - #### setTotal_size

          public void setTotal_size(Long total_size)

Copyright © 2015. All Rights Reserved.