Interface ProgressInterface
- All Known Implementing Classes:
ECpdsPlugin
public interface ProgressInterface
ECMWF Product Data Store (OpenECPDS) Project.
- Since:
- 2024-07-01
- Version:
- 6.7.7
- Author:
- Laurent Gougeon - syi@ecmwf.int, ECMWF.
-
Method Summary
Modifier and TypeMethodDescriptionlongGets the byte sent.longGets the data file id.default StringGets the name of the Destination this retrieval is for, if applicable.default longGets the total duration, in milliseconds, since this retrieval started.default longGets the total size, in bytes, of the file being retrieved.getRoot()Gets the root.default HostGets the source Host used for this retrieval (e.g. the Acquisition Host it is being pulled from), if applicable.default booleanWhether this retrieval is a genuine Acquisition (i.e. from an Acquisition Host), as opposed to e.g. a Dissemination-side backup/source pull which is not shown as an Acquisition on the "Live ECPDS Earth" globe.voidUpdate progress.
-
Method Details
-
getDataFileId
long getDataFileId()Gets the data file id.- Returns:
- the data file id
-
getRoot
-
getByteSent
long getByteSent()Gets the byte sent.- Returns:
- the byte sent
-
update
Update progress.- Parameters:
root- the rootbyteSent- the byte sent
-
getDestinationName
Gets the name of the Destination this retrieval is for, if applicable. Used by the "Live ECPDS Earth" globe visualisation to label/attribute Acquisition retrieval samples; not every implementation is tied to a Destination.- Returns:
- the destination name, or
nullif not applicable/known
-
getSourceHost
Gets the source Host used for this retrieval (e.g. the Acquisition Host it is being pulled from), if applicable. Used by the "Live ECPDS Earth" globe visualisation to geolocate/label Acquisition retrieval samples.- Returns:
- the source host, or
nullif not applicable/known
-
isAcquisition
default boolean isAcquisition()Whether this retrieval is a genuine Acquisition (i.e. from an Acquisition Host), as opposed to e.g. a Dissemination-side backup/source pull which is not shown as an Acquisition on the "Live ECPDS Earth" globe.- Returns:
- true, if this is an Acquisition retrieval
-
getDuration
default long getDuration()Gets the total duration, in milliseconds, since this retrieval started.- Returns:
- the duration, or
0if not applicable/known
-
getFileSize
default long getFileSize()Gets the total size, in bytes, of the file being retrieved.- Returns:
- the file size, or
-1if not applicable/known
-