Class ACARSError

All Implemented Interfaces:
Serializable, Comparable<Object>, ClientVersion, AuthoredBean, IDBean, RemoteAddressBean, ViewEntry, Cacheable

public class ACARSError extends DatabaseBlobBean implements ClientVersion, RemoteAddressBean, AuthoredBean, ViewEntry
A bean to store ACARS client error logs.
Since:
1.0
Version:
10.2
Author:
Luke
See Also:
  • Constructor Details

    • ACARSError

      public ACARSError(int userID, String msg)
      Creates a new error data bean.
      Parameters:
      userID - the User's database ID
      msg - the error message
      Throws:
      IllegalArgumentException - if userID is zero or negative
  • Method Details

    • getCreatedOn

      public Instant getCreatedOn()
      Returns the creation date of this error.
      Returns:
      the error date/time
      See Also:
    • getAuthorID

      public int getAuthorID()
      Description copied from interface: AuthoredBean
      Returns the Author of this bean.
      Specified by:
      getAuthorID in interface AuthoredBean
      Returns:
      the author's database ID
      See Also:
    • 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
    • getOSVersion

      public String getOSVersion()
      Returns the operating system version.
      Returns:
      the OS version
      See Also:
    • getCLRVersion

      public String getCLRVersion()
      Returns the .NET Common Language Runtime version.
      Returns:
      the CLR version
      See Also:
    • getIs64Bit

      public boolean getIs64Bit()
      Returns whether the ACARS client was running on a 64-bit operating system.
      Returns:
      TRUE if 64-bit, otherwise FALSE
      See Also:
    • getLocale

      public String getLocale()
      Returns the user's locale.
      Returns:
      the locale name
      See Also:
    • getTimeZone

      public String getTimeZone()
      Returns the user's time zone name.
      Returns:
      the OS-specific time zone name
      See Also:
    • getClientBuild

      public int getClientBuild()
      Returns the ACARS Client build that generated this error.
      Specified by:
      getClientBuild in interface ClientVersion
      Returns:
      the client build number
      See Also:
    • getBeta

      public int getBeta()
      Returns the ACARS Client beta build that generated this error.
      Specified by:
      getBeta in interface ClientVersion
      Returns:
      the beta number
      See Also:
    • getIsInfo

      public boolean getIsInfo()
      Returns whether this is an informational submission only.
      Returns:
      TRUE if informational, otherwise FALSE
    • getClientType

      public ClientType getClientType()
      Returns the ACARS client type.
      Specified by:
      getClientType in interface ClientVersion
      Returns:
      the ClienTtype
      See Also:
    • getVersion

      public int getVersion()
      Returns the ACARS major version.
      Specified by:
      getVersion in interface ClientVersion
      Returns:
      the major version number
      See Also:
    • getSimulator

      public Simulator getSimulator()
      Returns the Simulator used by the client.
      Returns:
      the Simulator
      See Also:
    • getPluginVersion

      public String getPluginVersion()
      Returns the version of simulator plugin used by the client.
      Returns:
      the version
      See Also:
    • getBridgeVersion

      public String getBridgeVersion()
      Returns the version of simulator bridge used by the client.
      Returns:
      the version
      See Also:
    • getMessage

      public String getMessage()
      Returns the error message.
      Returns:
      the message
      See Also:
    • getStackDump

      public String getStackDump()
      Returns the stack dump information.
      Returns:
      the stack dump
      See Also:
    • getStateData

      public String getStateData()
      Returns the state data.
      Returns:
      the state data
      See Also:
    • getLogData

      public byte[] getLogData()
      Returns the log data.
      Returns:
      the log data, or null if none
    • setAuthorID

      public void setAuthorID(int id)
      Description copied from interface: AuthoredBean
      Updates the author of this bean.
      Specified by:
      setAuthorID in interface AuthoredBean
      Parameters:
      id - the author's database ID.
      See Also:
    • setIsInfo

      public void setIsInfo(boolean isInfo)
      Updates whether this is an informational log message.
      Parameters:
      isInfo - TRUE if informational, otherwise FALSE
    • setCreatedOn

      public void setCreatedOn(Instant dt)
      Updates the creation date of this error.
      Parameters:
      dt - the error date/time
      See Also:
    • setRemoteAddr

      public void setRemoteAddr(String addr)
      Updates the IP address of the ACARS client.
      Parameters:
      addr - the IP address
      See Also:
    • setRemoteHost

      public void setRemoteHost(String host)
      Updates the host name of the ACARS client.
      Parameters:
      host - the host name
      See Also:
    • setClientBuild

      public void setClientBuild(int ver)
      Updates the ACARS Client build that generated this error.
      Parameters:
      ver - the client build number
      See Also:
    • setBeta

      public void setBeta(int beta)
      Updates the ACARS Client beta version that generated this error.
      Parameters:
      beta - the beta version
      See Also:
    • setSimulator

      public void setSimulator(Simulator sim)
      Updates the Simulator used by the client.
      Parameters:
      sim - the Simulator
      See Also:
    • setPluginVersion

      public void setPluginVersion(String ver)
      Updates the version of simulator plugin used by the client.
      Parameters:
      ver - the plugin version
      See Also:
    • setBridgeVersion

      public void setBridgeVersion(String ver)
      Updates the version of the Brdige used by the client.
      Parameters:
      ver - the Bridge version
      See Also:
    • setClientType

      public void setClientType(ClientType ct)
      Sets the ACARS client type.
      Parameters:
      ct - the ClientType
      See Also:
    • setVersion

      public void setVersion(int ver)
      Sets the ACARS client major version.
      Parameters:
      ver - the major version
      See Also:
    • setOSVersion

      public void setOSVersion(String v)
      Sets the operating system version.
      Parameters:
      v - the version
      See Also:
    • setIs64Bit

      public void setIs64Bit(boolean is64)
      Sets whether the operating system is 64-bit.
      Parameters:
      is64 - TRUE if 64-bit, otherwsie FALSE
      See Also:
    • setCLRVersion

      public void setCLRVersion(String v)
      Sets the .NET CLR version.
      Parameters:
      v - the version
      See Also:
    • setLocale

      public void setLocale(String l)
      Sets the client locale name.
      Parameters:
      l - the locale
      See Also:
    • setTimeZone

      public void setTimeZone(String tz)
      Updates the client time zone.
      Parameters:
      tz - the OS-specific time zone name
      See Also:
    • setMessage

      public void setMessage(String msg)
      Updates the error message.
      Parameters:
      msg - the message
      See Also:
    • setStackDump

      public void setStackDump(String info)
      Updates the stack dump information.
      Parameters:
      info - the stack dump
      See Also:
    • setStateData

      public void setStateData(String data)
      Updates the state data.
      Parameters:
      data - the state data
      See Also:
    • getRowClassName

      public String getRowClassName()
      Description copied from interface: ViewEntry
      Returns the CSS class for this object if rendered in a view table.
      Specified by:
      getRowClassName in interface ViewEntry
      Returns:
      the CSS class name, or NULL if none