java.lang.Object
org.yamcs.cfdp.QueuedCfdpTransfer
- All Implemented Interfaces:
CfdpFileTransfer,FileTransfer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanreturn the name of the bucket where the file is being transfered to/from.longlongorg.yamcs.protobuf.TransferDirectionlonggetId()return the name of the object (file) which is being transfered.return the remote path of the file which is being transfered.longlonglongreturn the file size in bytes or -1 if the size is not known.Get the CFDP transaction id.longorg.yamcs.protobuf.TransferStatebooleanbooleanpausable()voidsetFailureReason(String failureReason) voidsetTransferState(org.yamcs.protobuf.TransferState state)
-
Constructor Details
-
QueuedCfdpTransfer
-
-
Method Details
-
getBucketName
Description copied from interface:FileTransferreturn 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.
- Specified by:
getBucketNamein interfaceFileTransfer
-
getObjectName
Description copied from interface:FileTransferreturn 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.
- Specified by:
getObjectNamein interfaceFileTransfer
-
getRemotePath
Description copied from interface:FileTransferreturn 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.
- Specified by:
getRemotePathin interfaceFileTransfer
-
getDirection
public org.yamcs.protobuf.TransferDirection getDirection()- Specified by:
getDirectionin interfaceFileTransfer
-
getTotalSize
public long getTotalSize()Description copied from interface:FileTransferreturn 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.
- Specified by:
getTotalSizein interfaceFileTransfer
-
getTransferredSize
public long getTransferredSize()- Specified by:
getTransferredSizein interfaceFileTransfer
-
getId
public long getId()- Specified by:
getIdin interfaceFileTransfer
-
getTransferState
public org.yamcs.protobuf.TransferState getTransferState()- Specified by:
getTransferStatein interfaceFileTransfer
-
isReliable
public boolean isReliable()- Specified by:
isReliablein interfaceFileTransfer
-
getFailuredReason
- Specified by:
getFailuredReasonin interfaceFileTransfer
-
getStartTime
public long getStartTime()- Specified by:
getStartTimein interfaceFileTransfer
-
pausable
public boolean pausable()- Specified by:
pausablein interfaceFileTransfer
-
cancellable
public boolean cancellable()- Specified by:
cancellablein interfaceFileTransfer
-
getTransactionId
Description copied from interface:CfdpFileTransferGet the CFDP transaction id. Returns null for queued transfers.- Specified by:
getTransactionIdin interfaceCfdpFileTransfer- Returns:
-
getSourceId
public long getSourceId()- Specified by:
getSourceIdin interfaceCfdpFileTransfer
-
getDestinationId
public long getDestinationId()- Specified by:
getDestinationIdin interfaceCfdpFileTransfer
-
setTransferState
public void setTransferState(org.yamcs.protobuf.TransferState state) -
setFailureReason
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTimein interfaceFileTransfer
-