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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns information about this IP address.int
getBeta()
Returns the beta version.int
Returns the build number.Returns the client type.Returns the remote IP address.Returns the remote host name.abstract Instant
Returns the date/time of this entry.int
Returns the version number.void
setAddressInfo
(IPBlock info) Updates information about this IP address.void
setBeta
(int beta) void
setClientBuild
(int ver) void
setRemoteAddr
(String addr) Updates the IP address for this connection.void
setRemoteHost
(String host) Updates the host name for this connection.void
setVersion
(int ver) 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.AuthoredBean
getAuthorID, setAuthorID
Methods inherited from interface org.deltava.beans.acars.ClientVersion
isBeta
Methods inherited from interface org.deltava.beans.RemoteAddressBean
getIsResolved
-
Constructor Details
-
ACARSLogEntry
public ACARSLogEntry()
-
-
Method Details
-
getStartTime
Returns the date/time of this entry.- Returns:
- the entry date/time
-
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
-
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 interfaceClientVersion
- Returns:
- the version
-
getClientBuild
public int getClientBuild()Description copied from interface:ClientVersion
Returns the build number.- Specified by:
getClientBuild
in interfaceClientVersion
- Returns:
- the build
-
getBeta
public int getBeta()Description copied from interface:ClientVersion
Returns the beta version.- Specified by:
getBeta
in interfaceClientVersion
- Returns:
- the beta, or zero if non-beta
-
getClientType
Description copied from interface:ClientVersion
Returns the client type.- Specified by:
getClientType
in interfaceClientVersion
- Returns:
- the type
-
setRemoteAddr
Updates the IP address for this connection.- Parameters:
addr
- the IP address- See Also:
-
setRemoteHost
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
Updates information about this IP address.- Parameters:
info
- the IP address Info- See Also:
-