Class ACARSLogEntry

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ACARSLogEntry
All Implemented Interfaces:
Serializable, Comparable<Object>, ClientVersion, AuthoredBean, IDBean, RemoteAddressBean, Cacheable
Direct Known Subclasses:
ConnectionEntry, FlightInfo

public abstract class ACARSLogEntry extends DatabaseBean implements RemoteAddressBean, ClientVersion, AuthoredBean
An abstract class for common ACRS log entry functions.
Since:
1.0
Version:
10.2
Author:
Luke
See Also:
  • Constructor Details

    • ACARSLogEntry

      public ACARSLogEntry()
  • Method Details

    • getStartTime

      public abstract Instant getStartTime()
      Returns the date/time of this entry.
      Returns:
      the entry date/time
    • getRemoteAddr

      public String getRemoteAddr()
      Description copied from interface: RemoteAddressBean
      Returns the remote IP address.
      Specified by:
      getRemoteAddr in interface RemoteAddressBean
      Returns:
      an IPv4 or IPv6 address
    • getRemoteHost

      public String getRemoteHost()
      Description copied from interface: RemoteAddressBean
      Returns the remote host name.
      Specified by:
      getRemoteHost in interface RemoteAddressBean
      Returns:
      the host name, or address if unresolved
    • getAddressInfo

      public IPBlock getAddressInfo()
      Returns information about this IP address.
      Returns:
      the IP address Info
      See Also:
    • getVersion

      public int getVersion()
      Description copied from interface: ClientVersion
      Returns the version number.
      Specified by:
      getVersion in interface ClientVersion
      Returns:
      the version
    • getClientBuild

      public int getClientBuild()
      Description copied from interface: ClientVersion
      Returns the build number.
      Specified by:
      getClientBuild in interface ClientVersion
      Returns:
      the build
    • getBeta

      public int getBeta()
      Description copied from interface: ClientVersion
      Returns the beta version.
      Specified by:
      getBeta in interface ClientVersion
      Returns:
      the beta, or zero if non-beta
    • getClientType

      public ClientType getClientType()
      Description copied from interface: ClientVersion
      Returns the client type.
      Specified by:
      getClientType in interface ClientVersion
      Returns:
      the type
    • setRemoteAddr

      public void setRemoteAddr(String addr)
      Updates the IP address for this connection.
      Parameters:
      addr - the IP address
      See Also:
    • setRemoteHost

      public void setRemoteHost(String host)
      Updates the host name for this connection.
      Parameters:
      host - the host name
      See Also:
    • setVersion

      public void setVersion(int ver)
    • setClientBuild

      public void setClientBuild(int ver)
    • setBeta

      public void setBeta(int beta)
    • setAddressInfo

      public void setAddressInfo(IPBlock info)
      Updates information about this IP address.
      Parameters:
      info - the IP address Info
      See Also: