Package org.yamcs.cfdp
Class CompletedTransfer
- java.lang.Object
-
- org.yamcs.cfdp.CompletedTransfer
-
- All Implemented Interfaces:
CfdpTransfer
public class CompletedTransfer extends Object implements CfdpTransfer
Represents a pastCfdpTransfer
obtained 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 TupleDefinition
TDEF
-
Constructor Summary
Constructors Constructor Description CompletedTransfer(Tuple tuple)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancellable()
String
getBucketName()
org.yamcs.protobuf.TransferDirection
getDirection()
String
getFailuredReason()
long
getId()
String
getObjectName()
String
getRemotePath()
long
getStartTime()
long
getTotalSize()
CfdpTransactionId
getTransactionId()
long
getTransferredSize()
org.yamcs.protobuf.TransferState
getTransferState()
boolean
isReliable()
boolean
pausable()
String
toString()
-
-
-
Field Detail
-
TDEF
public static final TupleDefinition TDEF
-
-
Constructor Detail
-
CompletedTransfer
public CompletedTransfer(Tuple tuple)
-
-
Method Detail
-
getStartTime
public long getStartTime()
- Specified by:
getStartTime
in interfaceCfdpTransfer
-
getId
public long getId()
- Specified by:
getId
in interfaceCfdpTransfer
-
getObjectName
public String getObjectName()
- Specified by:
getObjectName
in interfaceCfdpTransfer
-
getRemotePath
public String getRemotePath()
- Specified by:
getRemotePath
in interfaceCfdpTransfer
-
getDirection
public org.yamcs.protobuf.TransferDirection getDirection()
- Specified by:
getDirection
in interfaceCfdpTransfer
-
getTotalSize
public long getTotalSize()
- Specified by:
getTotalSize
in interfaceCfdpTransfer
-
getTransferredSize
public long getTransferredSize()
- Specified by:
getTransferredSize
in interfaceCfdpTransfer
-
getBucketName
public String getBucketName()
- Specified by:
getBucketName
in interfaceCfdpTransfer
-
getTransactionId
public CfdpTransactionId getTransactionId()
- Specified by:
getTransactionId
in interfaceCfdpTransfer
-
getTransferState
public org.yamcs.protobuf.TransferState getTransferState()
- Specified by:
getTransferState
in interfaceCfdpTransfer
-
isReliable
public boolean isReliable()
- Specified by:
isReliable
in interfaceCfdpTransfer
-
getFailuredReason
public String getFailuredReason()
- Specified by:
getFailuredReason
in interfaceCfdpTransfer
-
pausable
public boolean pausable()
- Specified by:
pausable
in interfaceCfdpTransfer
-
cancellable
public boolean cancellable()
- Specified by:
cancellable
in interfaceCfdpTransfer
-
-