Class ArchiveMetadata

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ArchiveMetadata
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable

public class ArchiveMetadata extends DatabaseBean
A bean to store ACARS position archive metadata.
Since:
6.2
Version:
11.2
Author:
Luke
See Also:
  • 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

      public Instant 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

      public SerializedDataVersion getFormat()
      Returns the data format used to archive this flight data.
      Returns:
      a SerializedDataVersion, or null if unknown
    • getBucket

      public String getBucket()
      Returns the data file bucket name.
      Returns:
      the bucket name
    • getCompression

      public Compression getCompression()
      Returns the compression used on this archive. This may be Compression.NONE if unknown.
      Returns:
      a Compression enum
    • 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

      public void setArchivedOn(Instant dt)
      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

      public void setFormat(SerializedDataVersion ver)
      Updates the serialization format used in this archived flight.
      Parameters:
      ver - a SerializedDataVersion, or null if unknown
    • setBucket

      public void setBucket(String b)
      Updates the data file bucket name.
      Parameters:
      b - the bucket
    • setCompression

      public void setCompression(Compression c)
      Updates the compression method used for this archive.
      Parameters:
      c - a Compression enum