Class ACARSError
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.DatabaseBlobBean
org.deltava.beans.acars.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:
-
Field Summary
Fields inherited from class org.deltava.beans.DatabaseBlobBean
_buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the Author of this bean.int
getBeta()
Returns the ACARS Client beta build that generated this error.Returns the version of simulator bridge used by the client.int
Returns the ACARS Client build that generated this error.Returns the ACARS client type.Returns the .NET Common Language Runtime version.Returns the creation date of this error.boolean
Returns whether the ACARS client was running on a 64-bit operating system.boolean
Returns whether this is an informational submission only.Returns the user's locale.byte[]
Returns the log data.Returns the error message.Returns the operating system version.Returns the version of simulator plugin used by the client.Returns the remote IP address.Returns the remote host name.Returns the CSS class for this object if rendered in a view table.Returns the Simulator used by the client.Returns the stack dump information.Returns the state data.Returns the user's time zone name.int
Returns the ACARS major version.void
setAuthorID
(int id) Updates the author of this bean.void
setBeta
(int beta) Updates the ACARS Client beta version that generated this error.void
setBridgeVersion
(String ver) Updates the version of the Brdige used by the client.void
setClientBuild
(int ver) Updates the ACARS Client build that generated this error.void
Sets the ACARS client type.void
Sets the .NET CLR version.void
setCreatedOn
(Instant dt) Updates the creation date of this error.void
setIs64Bit
(boolean is64) Sets whether the operating system is 64-bit.void
setIsInfo
(boolean isInfo) Updates whether this is an informational log message.void
Sets the client locale name.void
setMessage
(String msg) Updates the error message.void
Sets the operating system version.void
setPluginVersion
(String ver) Updates the version of simulator plugin used by the client.void
setRemoteAddr
(String addr) Updates the IP address of the ACARS client.void
setRemoteHost
(String host) Updates the host name of the ACARS client.void
setSimulator
(Simulator sim) Updates the Simulator used by the client.void
setStackDump
(String info) Updates the stack dump information.void
setStateData
(String data) Updates the state data.void
setTimeZone
(String tz) Updates the client time zone.void
setVersion
(int ver) Sets the ACARS client major version.Methods inherited from class org.deltava.beans.DatabaseBlobBean
clear, getInputStream, getSize, isLoaded, load, load
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.acars.ClientVersion
isBeta
Methods inherited from interface org.deltava.beans.RemoteAddressBean
getIsResolved
-
Constructor Details
-
ACARSError
Creates a new error data bean.- Parameters:
userID
- the User's database IDmsg
- the error message- Throws:
IllegalArgumentException
- if userID is zero or negative
-
-
Method Details
-
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 interfaceAuthoredBean
- Returns:
- the author's database ID
- See Also:
-
getRemoteAddr
Description copied from interface:RemoteAddressBean
Returns the remote IP address.- Specified by:
getRemoteAddr
in interfaceRemoteAddressBean
- Returns:
- an IPv4 or IPv6 address
-
getRemoteHost
Description copied from interface:RemoteAddressBean
Returns the remote host name.- Specified by:
getRemoteHost
in interfaceRemoteAddressBean
- Returns:
- the host name, or address if unresolved
-
getOSVersion
Returns the operating system version.- Returns:
- the OS version
- See Also:
-
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
-
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 interfaceClientVersion
- 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 interfaceClientVersion
- 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
Returns the ACARS client type.- Specified by:
getClientType
in interfaceClientVersion
- Returns:
- the ClienTtype
- See Also:
-
getVersion
public int getVersion()Returns the ACARS major version.- Specified by:
getVersion
in interfaceClientVersion
- Returns:
- the major version number
- See Also:
-
getSimulator
Returns the Simulator used by the client.- Returns:
- the Simulator
- See Also:
-
getPluginVersion
Returns the version of simulator plugin used by the client.- Returns:
- the version
- See Also:
-
getBridgeVersion
Returns the version of simulator bridge used by the client.- Returns:
- the version
- See Also:
-
getMessage
-
getStackDump
-
getStateData
-
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 interfaceAuthoredBean
- 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
Updates the creation date of this error.- Parameters:
dt
- the error date/time- See Also:
-
setRemoteAddr
Updates the IP address of the ACARS client.- Parameters:
addr
- the IP address- See Also:
-
setRemoteHost
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
Updates the Simulator used by the client.- Parameters:
sim
- the Simulator- See Also:
-
setPluginVersion
Updates the version of simulator plugin used by the client.- Parameters:
ver
- the plugin version- See Also:
-
setBridgeVersion
Updates the version of the Brdige used by the client.- Parameters:
ver
- the Bridge version- See Also:
-
setClientType
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
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
Sets the .NET CLR version.- Parameters:
v
- the version- See Also:
-
setLocale
-
setTimeZone
Updates the client time zone.- Parameters:
tz
- the OS-specific time zone name- See Also:
-
setMessage
Updates the error message.- Parameters:
msg
- the message- See Also:
-
setStackDump
Updates the stack dump information.- Parameters:
info
- the stack dump- See Also:
-
setStateData
Updates the state data.- Parameters:
data
- the state data- See Also:
-
getRowClassName
Description copied from interface:ViewEntry
Returns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name, or NULL if none
-