Class DispatchConnectionEntry
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ACARSLogEntry
org.deltava.beans.acars.ConnectionEntry
org.deltava.beans.acars.DispatchConnectionEntry
- All Implemented Interfaces:
Serializable, Comparable<Object>, ClientVersion, AuthoredBean, CalendarEntry, IDBean, RemoteAddressBean, TimeSpan, Cacheable
An ACARS Connection log entry for Dispatchers.
- Since:
- 2.4
- Version:
- 6.4
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFlights(Collection<FlightInfo> info) Adds dispatched Flights to this Connection entry.final booleanReturns if this is a Dispatch connection.Returns Flights dispatched during this connection.booleanReturns whether this connection dispatched any flights.toString()Methods inherited from class ConnectionEntry
compareTo, getAuthorID, getCompressed, getConnectionID, getDate, getEndTime, getFlightInfo, getFlightPhase, getMessageCount, getPilotID, getStartTime, getTCPStatistics, getTime, getUDPStatistics, getUser, getUserData, getUserHidden, getVoice, setAuthorID, setCompressed, setConnectionID, setEndTime, setFlightInfo, setFlightPhase, setMessageCount, setStartTime, setStatistics, setUser, setUserData, setUserHidden, setVoiceModifier and TypeMethodDescriptionintCompares two connections by comparing their date/times.intReturns the Author of this bean.booleanReturns whether data compression is enabled.longReturns this connection's ID.getDate()Returns this entry's date for ordering in the Calendar.Returns the end date/time of this connection.Returns the flight information for the flight.Returns the flight phase.intReturns the number of text messages sent by this connection.intReturns the database ID of the user who made this connection.Returns the start date/time of this connection.Returns control statistics.longgetTime()Returns the length of the connection.Returns voice statistics.getUser()Returns the Pilot bean for the connection's authenticated user.Returns the UserData bean for the connection's authenticated user.booleanReturns if this is a Hidden connection.booleangetVoice()Returns whether voice is enabled.voidsetAuthorID(int id) Updates the Database ID of the user who created this connection.voidsetCompressed(boolean isCompressed) Marks this connection as compressed.voidsetConnectionID(long id) Updates the ACARS connection ID.voidsetEndTime(Instant dt) Returns the date/time the connection was ended.voidsetFlightInfo(FlightInfo info) Sets the flight information for this connection.voidsetFlightPhase(FlightPhase phase) Sets the flight phasevoidsetMessageCount(int msgs) Updates the number of text messages sent by this connection.voidsetStartTime(Instant dt) Returns the date/time the connection was started.voidsetStatistics(ConnectionStats tcp, ConnectionStats udp) Updates connection statistics.voidUpdates the Pilot bean for the user who created this connection.voidsetUserData(UserData ud) Updates the UserData record for the user who created this connection.voidsetUserHidden(boolean isHidden) Marks this connection as a Hidden connection.voidsetVoice(boolean isVoice) Marks this connection as voice-enabled.Methods inherited from class ACARSLogEntry
getAddressInfo, getBeta, getClientBuild, getClientType, getRemoteAddr, getRemoteHost, getVersion, setAddressInfo, setBeta, setClientBuild, setRemoteAddr, setRemoteHost, setVersionModifier 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.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 DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.booleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.Methods inherited from interface ClientVersion
isBetaMethods inherited from interface RemoteAddressBean
getIsResolvedModifier and TypeMethodDescriptiondefault booleanReturns if the host name has been resolved.Methods inherited from interface TimeSpan
getDuration, hasTimes, validateDates
-
Constructor Details
-
DispatchConnectionEntry
public DispatchConnectionEntry(long id) Creates a new Dispatch Connection entry.- Parameters:
id- the Connection ID
-
-
Method Details
-
getDispatch
public final boolean getDispatch()Returns if this is a Dispatch connection.- Overrides:
getDispatchin classConnectionEntry- Returns:
- TRUE
-
getHasFlights
public boolean getHasFlights()Returns whether this connection dispatched any flights.- Returns:
- TRUE if flights dispatched, otherwise FALSE
-
getFlights
Returns Flights dispatched during this connection.- Returns:
- a Collection of FlightInfo beans
-
addFlights
Adds dispatched Flights to this Connection entry.- Parameters:
info- a Collection of FlightInfo beans
-
toString
-