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.intgetBeta()Returns the beta version.intReturns the build number.Returns the client type.Returns the remote IP address.Returns the remote host name.abstract InstantReturns the date/time of this entry.intReturns the version number.voidsetAddressInfo(IPBlock info) Updates information about this IP address.voidsetBeta(int beta) voidsetClientBuild(int ver) voidsetRemoteAddr(String addr) Updates the IP address for this connection.voidsetRemoteHost(String host) Updates the host name for this connection.voidsetVersion(int ver) Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.deltava.beans.AuthoredBean
getAuthorID, setAuthorIDMethods inherited from interface org.deltava.beans.acars.ClientVersion
isBetaMethods 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:RemoteAddressBeanReturns the remote IP address.- Specified by:
getRemoteAddrin interfaceRemoteAddressBean- Returns:
- an IPv4 or IPv6 address
-
getRemoteHost
Description copied from interface:RemoteAddressBeanReturns the remote host name.- Specified by:
getRemoteHostin 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:ClientVersionReturns the version number.- Specified by:
getVersionin interfaceClientVersion- Returns:
- the version
-
getClientBuild
public int getClientBuild()Description copied from interface:ClientVersionReturns the build number.- Specified by:
getClientBuildin interfaceClientVersion- Returns:
- the build
-
getBeta
public int getBeta()Description copied from interface:ClientVersionReturns the beta version.- Specified by:
getBetain interfaceClientVersion- Returns:
- the beta, or zero if non-beta
-
getClientType
Description copied from interface:ClientVersionReturns the client type.- Specified by:
getClientTypein 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:
-