Class DownloadProgress

java.lang.Object
ecmwf.ecpds.master.DownloadProgress
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable

public final class DownloadProgress extends Object implements Serializable, Closeable
The Class DownloadProgress.
See Also:
  • Constructor Details

    • DownloadProgress

      public DownloadProgress(String root, long dataFileId, long size, long duration, long byteSent, Closeable caller)
      Instantiates a new download progress.
      Parameters:
      root - the root
      dataFileId - the data file id
      size - the size
      duration - the duration
      byteSent - the byte sent
      caller - something to close
  • Method Details

    • getRoot

      public String getRoot()
      Gets the root.
      Returns:
      the root
    • getDataFileId

      public long getDataFileId()
      Gets the data file.
      Returns:
      the data file
    • getSize

      public long getSize()
      Gets the size.
      Returns:
      the size
    • setDuration

      public void setDuration(long duration)
      Sets the duration.
      Parameters:
      duration - the duration
    • getDuration

      public long getDuration()
      Gets the duration.
      Returns:
      the duration
    • setByteSent

      public void setByteSent(long byteSent)
      Sets the byteSent.
      Parameters:
      byteSent - the byte sent
    • getByteSent

      public long getByteSent()
      Gets the byte sent.
      Returns:
      the byte sent
    • isClosed

      public boolean isClosed()
      Check if it is closed.
      Returns:
      closed?
    • close

      public void close()
      Close.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object