Class LiveTransferSample
java.lang.Object
ecmwf.ecpds.master.LiveTransferSample
- All Implemented Interfaces:
Serializable
The Class LiveTransferSample.
Lightweight, generic snapshot of an in-progress (or just-finished) data transfer, pushed periodically from a
DataMover to the MasterServer so that it can be broadcast to "Live ECPDS Earth" globe visualisation clients. This is
intentionally decoupled from ECPDS's internal transfer machinery: it only carries the information the visualisation
needs (who/what/where/how-fast/how-much), not full DataTransfer/Host objects.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDirection: data pulled in from an Acquisition Host.static final StringDirection: data pushed out to a Dissemination Host.static final StringStatus: transfer is currently in progress.static final StringStatus: transfer completed successfully.static final StringStatus: transfer failed/was retried. -
Constructor Summary
ConstructorsConstructorDescriptionLiveTransferSample(long transferId, String moverName, String destinationName, String hostName, String hostNickname, String hostAddress, String protocol, long fileSize, long byteSent, long duration, double rateBitsPerSecond, String status, String direction) Instantiates a new live transfer sample. -
Method Summary
-
Field Details
-
STATUS_ACTIVE
-
STATUS_DONE
-
STATUS_FAILED
-
DIRECTION_DISSEMINATION
Direction: data pushed out to a Dissemination Host.- See Also:
-
DIRECTION_ACQUISITION
Direction: data pulled in from an Acquisition Host.- See Also:
-
-
Constructor Details
-
LiveTransferSample
public LiveTransferSample(long transferId, String moverName, String destinationName, String hostName, String hostNickname, String hostAddress, String protocol, long fileSize, long byteSent, long duration, double rateBitsPerSecond, String status, String direction) Instantiates a new live transfer sample.- Parameters:
transferId- the transfer idmoverName- the mover namedestinationName- the destination namehostName- the host namehostNickname- the host nickname (display name, falls back to hostName when blank)hostAddress- the host's actual network address (hostname or IP), used for GeoIP resolutionprotocol- the protocolfileSize- the file sizebyteSent- the byte sentduration- the durationrateBitsPerSecond- the rate bits per secondstatus- the statusdirection- one ofDIRECTION_DISSEMINATIONorDIRECTION_ACQUISITION; defaults toDIRECTION_DISSEMINATIONifnull
-
-
Method Details
-
getTransferId
public long getTransferId() -
getMoverName
-
getDestinationName
-
getHostName
-
getHostNickname
-
getHostAddress
-
getProtocol
-
getFileSize
public long getFileSize() -
getByteSent
public long getByteSent() -
getDuration
public long getDuration() -
getRateBitsPerSecond
public double getRateBitsPerSecond() -
getStatus
-
getDirection
-
getTimestamp
public long getTimestamp() -
isTerminal
public boolean isTerminal() -
toString
-