Package org.yamcs.cfdp
Class CompletedTransfer
- java.lang.Object
-
- org.yamcs.cfdp.CompletedTransfer
-
- All Implemented Interfaces:
CfdpFileTransfer,FileTransfer
public class CompletedTransfer extends Object implements CfdpFileTransfer
Represents a pastCfdpFileTransferobtained from the database. Reads all the properties from a tuple (row in the database).Implements also some methods for converting between on-going transfers and tuples.
-
-
Field Summary
Fields Modifier and Type Field Description static TupleDefinitionTDEF
-
Constructor Summary
Constructors Constructor Description CompletedTransfer(Tuple tuple)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancellable()StringgetBucketName()longgetCreationTime()longgetDestinationId()org.yamcs.protobuf.TransferDirectiongetDirection()StringgetFailuredReason()longgetId()StringgetObjectName()StringgetRemotePath()longgetSourceId()longgetStartTime()longgetTotalSize()CfdpTransactionIdgetTransactionId()Get the CFDP transaction id.longgetTransferredSize()org.yamcs.protobuf.TransferStategetTransferState()booleanisReliable()booleanpausable()StringtoString()
-
-
-
Field Detail
-
TDEF
public static final TupleDefinition TDEF
-
-
Constructor Detail
-
CompletedTransfer
public CompletedTransfer(Tuple tuple)
-
-
Method Detail
-
getStartTime
public long getStartTime()
- Specified by:
getStartTimein interfaceFileTransfer
-
getId
public long getId()
- Specified by:
getIdin interfaceFileTransfer
-
getObjectName
public String getObjectName()
- Specified by:
getObjectNamein interfaceFileTransfer
-
getRemotePath
public String getRemotePath()
- Specified by:
getRemotePathin interfaceFileTransfer
-
getDirection
public org.yamcs.protobuf.TransferDirection getDirection()
- Specified by:
getDirectionin interfaceFileTransfer
-
getTotalSize
public long getTotalSize()
- Specified by:
getTotalSizein interfaceFileTransfer
-
getTransferredSize
public long getTransferredSize()
- Specified by:
getTransferredSizein interfaceFileTransfer
-
getBucketName
public String getBucketName()
- Specified by:
getBucketNamein interfaceFileTransfer
-
getTransactionId
public CfdpTransactionId getTransactionId()
Description copied from interface:CfdpFileTransferGet the CFDP transaction id. Returns null for queued transfers.- Specified by:
getTransactionIdin interfaceCfdpFileTransfer- Returns:
-
getTransferState
public org.yamcs.protobuf.TransferState getTransferState()
- Specified by:
getTransferStatein interfaceFileTransfer
-
isReliable
public boolean isReliable()
- Specified by:
isReliablein interfaceFileTransfer
-
getFailuredReason
public String getFailuredReason()
- Specified by:
getFailuredReasonin interfaceFileTransfer
-
pausable
public boolean pausable()
- Specified by:
pausablein interfaceFileTransfer
-
cancellable
public boolean cancellable()
- Specified by:
cancellablein interfaceFileTransfer
-
getSourceId
public long getSourceId()
- Specified by:
getSourceIdin interfaceCfdpFileTransfer
-
getDestinationId
public long getDestinationId()
- Specified by:
getDestinationIdin interfaceCfdpFileTransfer
-
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTimein interfaceFileTransfer
-
-