Package org.yamcs.cfdp.pdu
Class MetadataPacket
java.lang.Object
org.yamcs.cfdp.pdu.CfdpPacket
org.yamcs.cfdp.pdu.MetadataPacket
- All Implemented Interfaces:
FileDirective
-
Nested Class Summary
Nested classes/interfaces inherited from class org.yamcs.cfdp.pdu.CfdpPacket
CfdpPacket.TransmissionMode
-
Field Summary
Fields inherited from class org.yamcs.cfdp.pdu.CfdpPacket
CFDP, header
-
Constructor Summary
ConstructorDescriptionMetadataPacket
(boolean closureRequested, ChecksumType checksumType, int fileSize, String source, String destination, List<TLV> options, CfdpHeader header) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
long
toJson()
toString()
protected void
writeCFDPPacket
(ByteBuffer buffer) Methods inherited from class org.yamcs.cfdp.pdu.CfdpPacket
fromTuple, getCFDPPacket, getHeader, getTransactionId, toByteArray, toTuple, toTuple, toTuple, writeToBuffer
-
Constructor Details
-
MetadataPacket
public MetadataPacket(boolean closureRequested, ChecksumType checksumType, int fileSize, String source, String destination, List<TLV> options, CfdpHeader header)
-
-
Method Details
-
getFileLength
public long getFileLength() -
getDataFieldLength
public int getDataFieldLength()- Specified by:
getDataFieldLength
in classCfdpPacket
-
closureRequested
public boolean closureRequested() -
writeCFDPPacket
- Specified by:
writeCFDPPacket
in classCfdpPacket
-
getFileDirectiveCode
- Specified by:
getFileDirectiveCode
in interfaceFileDirective
-
getSourceFilename
-
getDestinationFilename
-
getChecksumType
-
getOptions
-
toString
-
toJson
-