Package org.yamcs.filetransfer
Interface FileTransfer
-
- All Known Subinterfaces:
CfdpFileTransfer
- All Known Implementing Classes:
CfdpIncomingTransfer
,CfdpOutgoingTransfer
,CompletedTransfer
,OngoingCfdpTransfer
,QueuedCfdpTransfer
public interface FileTransfer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
cancellable()
String
getBucketName()
return the name of the bucket where the file is being transfered to/from.long
getCreationTime()
org.yamcs.protobuf.TransferDirection
getDirection()
String
getFailuredReason()
long
getId()
String
getObjectName()
return the name of the object (file) which is being transfered.String
getRemotePath()
return the remote path of the file which is being transfered.long
getStartTime()
long
getTotalSize()
return the file size in bytes or -1 if the size is not known.long
getTransferredSize()
org.yamcs.protobuf.TransferState
getTransferState()
boolean
isReliable()
boolean
pausable()
-
-
-
Method Detail
-
getBucketName
String getBucketName()
return the name of the bucket where the file is being transfered to/from.Could be null for incoming transfers. For the CFDP service, the bucket is determined by the source or destination entity id and it is not null. However if the bucket was determined by the filename which is known only when the metadata packet is received, this could be null.
-
getObjectName
String getObjectName()
return the name of the object (file) which is being transfered. This is the filename on the local (Yamcs) site.Can be null for incoming transfers - for example CFDP can start a transfer without knowing the filename if the first metadata packet has been lost.
-
getRemotePath
String getRemotePath()
return the remote path of the file which is being transfered.Can be null for incoming transfers - for example CFDP can start a transfer without having this information if the first metadata packet has been lost.
-
getDirection
org.yamcs.protobuf.TransferDirection getDirection()
-
getTotalSize
long getTotalSize()
return the file size in bytes or -1 if the size is not known.For the CFDP service the incoming files can be unbounded (but this is not yet supported) or the size will be part of the metadata packet which may be missing.
-
getTransferredSize
long getTransferredSize()
-
getId
long getId()
-
getTransferState
org.yamcs.protobuf.TransferState getTransferState()
-
isReliable
boolean isReliable()
-
getFailuredReason
String getFailuredReason()
-
getCreationTime
long getCreationTime()
-
getStartTime
long getStartTime()
-
pausable
boolean pausable()
-
cancellable
boolean cancellable()
-
-