Package org.deltava.beans.acars
Class ArchiveMetadata
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ArchiveMetadata
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,Cacheable
A bean to store ACARS position archive metadata.
- Since:
- 6.2
- Version:
- 10.5
- Author:
- Luke
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the date the flight was archived.Returns the data file bucket name.long
getCRC32()
Returns the CRC32 value for the archived data.Returns the data format used to archive this flight data.int
Returns the number of archived position entries.int
getSize()
Returns the size of the archived data.void
setArchivedOn
(Instant dt) Updates the archive date.void
Updates the data file bucket name.void
setCRC32
(long crc) Updates the CRC32 value for the archived data.void
Updates the serialization format used in this archived flight.void
setPositionCount
(int cnt) Updates the number of archive position entries.void
setSize
(int size) Updates the size of the archived metadata.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
ArchiveMetadata
public ArchiveMetadata(int id) Creates the bean.- Parameters:
id
- the ACARS flight ID
-
-
Method Details
-
getCRC32
public long getCRC32()Returns the CRC32 value for the archived data.- Returns:
- the CRC32 or zero if none
-
getSize
public int getSize()Returns the size of the archived data.- Returns:
- the size in bytes
-
getArchivedOn
Returns the date the flight was archived.- Returns:
- the archive date/time
-
getPositionCount
public int getPositionCount()Returns the number of archived position entries.- Returns:
- the number of entries
-
getFormat
Returns the data format used to archive this flight data.- Returns:
- a SerializedDataVersion, or null if unknown
-
getBucket
-
setCRC32
public void setCRC32(long crc) Updates the CRC32 value for the archived data.- Parameters:
crc
- the CRC32
-
setSize
public void setSize(int size) Updates the size of the archived metadata.- Parameters:
size
- the size in bytes
-
setArchivedOn
Updates the archive date.- Parameters:
dt
- the archive date/time
-
setPositionCount
public void setPositionCount(int cnt) Updates the number of archive position entries.- Parameters:
cnt
- the number of position entries
-
setFormat
Updates the serialization format used in this archived flight.- Parameters:
ver
- a SerializedDataVersion, or null if unknown
-
setBucket
-