org.deltava.beans.acars
Class ACARSError

java.lang.Object
  extended by org.deltava.beans.DatabaseBean
      extended by org.deltava.beans.acars.ACARSError
All Implemented Interfaces:
Serializable, Comparable<Object>, Cacheable

public class ACARSError
extends DatabaseBean

A bean to store ACARS error dumps.

Since:
1.0
Version:
2.6
Author:
Luke
See Also:
Serialized Form

Constructor Summary
ACARSError(int userID, String msg)
          Creates a new error data bean.
 
Method Summary
 int getBeta()
          Returns the ACARS Client beta build that generated this error.
 int getClientBuild()
          Returns the ACARS Client build that generated this error.
 Date getCreatedOn()
          Returns the creation date of this error.
 String getFSUIPCVersion()
          Returns the version of FSUIPC used by the client.
 int getFSVersion()
          Returns the version of Flight Simulator used by the client.
 String getMessage()
          Returns the error message.
 String getRemoteAddr()
          Returns the IP address of the ACARS client.
 String getRemoteHost()
          Returns the host name of the ACARS client.
 String getStackDump()
          Returns the stack dump information.
 String getStateData()
          Returns the state data.
 int getUserID()
          Returns the User who logged this error message.
 void setBeta(int beta)
          Updates the ACARS Client beta version that generated this error.
 void setClientBuild(int ver)
          Updates the ACARS Client build that generated this error.
 void setCreatedOn(Date dt)
          Updates the creation date of this error.
 void setFSUIPCVersion(String ver)
          Updates the version of FSUIPC used by the client.
 void setFSVersion(int ver)
          Updates the version of Flight Simulator used by the client.
 void setMessage(String msg)
          Updates the error message.
 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 setStackDump(String info)
          Updates the stack dump information.
 void setStateData(String data)
          Updates the state data.
 void setUserID(int id)
          Updates the User who logged this error message.
 
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

getCreatedOn

public Date getCreatedOn()
Returns the creation date of this error.

Returns:
the error date/time
See Also:
setCreatedOn(Date)

getUserID

public int getUserID()
Returns the User who logged this error message.

Returns:
the User's database ID
See Also:
setUserID(int)

getRemoteAddr

public String getRemoteAddr()
Returns the IP address of the ACARS client.

Returns:
the IP address
See Also:
setRemoteAddr(String)

getRemoteHost

public String getRemoteHost()
Returns the host name of the ACARS client.

Returns:
the host name
See Also:
setRemoteHost(String)

getClientBuild

public int getClientBuild()
Returns the ACARS Client build that generated this error.

Returns:
the client build number
See Also:
setClientBuild(int)

getBeta

public int getBeta()
Returns the ACARS Client beta build that generated this error.

Returns:
the beta number
See Also:
setBeta(int)

getFSVersion

public int getFSVersion()
Returns the version of Flight Simulator used by the client.

Returns:
the FS version code
See Also:
setFSVersion(int)

getFSUIPCVersion

public String getFSUIPCVersion()
Returns the version of FSUIPC used by the client.

Returns:
the FSUIPC version
See Also:
setFSUIPCVersion(String)

getMessage

public String getMessage()
Returns the error message.

Returns:
the message
See Also:
setMessage(String)

getStackDump

public String getStackDump()
Returns the stack dump information.

Returns:
the stack dump
See Also:
setStackDump(String)

getStateData

public String getStateData()
Returns the state data.

Returns:
the state data
See Also:
setStateData(String)

setUserID

public void setUserID(int id)
Updates the User who logged this error message.

Parameters:
id - the User's database ID
Throws:
IllegalArgumentException - if id is zero or negative
See Also:
getUserID()

setCreatedOn

public void setCreatedOn(Date dt)
Updates the creation date of this error.

Parameters:
dt - the error date/time
See Also:
getCreatedOn()

setRemoteAddr

public void setRemoteAddr(String addr)
Updates the IP address of the ACARS client.

Parameters:
addr - the IP address
See Also:
getRemoteAddr()

setRemoteHost

public void setRemoteHost(String host)
Updates the host name of the ACARS client.

Parameters:
host - the host name
See Also:
getRemoteHost()

setClientBuild

public void setClientBuild(int ver)
Updates the ACARS Client build that generated this error.

Parameters:
ver - the client build number
See Also:
getClientBuild()

setBeta

public void setBeta(int beta)
Updates the ACARS Client beta version that generated this error.

Parameters:
beta - the beta version
See Also:
getBeta()

setFSVersion

public void setFSVersion(int ver)
Updates the version of Flight Simulator used by the client.

Parameters:
ver - the FS version code
See Also:
getFSVersion()

setFSUIPCVersion

public void setFSUIPCVersion(String ver)
Updates the version of FSUIPC used by the client.

Parameters:
ver - the FSUIPC version
See Also:
getFSUIPCVersion()

setMessage

public void setMessage(String msg)
Updates the error message.

Parameters:
msg - the message
See Also:
getMessage()

setStackDump

public void setStackDump(String info)
Updates the stack dump information.

Parameters:
info - the stack dump
See Also:
getStackDump()

setStateData

public void setStateData(String data)
Updates the state data.

Parameters:
data - the state data
See Also:
getStateData()


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.