public class ServerEvent extends Object
EventManager
Modifier and Type | Field and Description |
---|---|
static String[] |
eventClassNames
The array of event classes.
|
Constructor and Description |
---|
ServerEvent(ClientConnectionData clientConnectionData,
int eventID,
String event,
int eventClass)
Creates an instance of the server event.
|
Modifier and Type | Method and Description |
---|---|
String |
getEvent()
Gets the event string.
|
int |
getEventClass()
Gets the event class.
|
int |
getEventID()
Gets the event ID.
|
String |
getEventIDString()
Gets the event ID string.
|
ClientConnectionData |
getSource()
Gets the source.
|
Date |
getTimeStamp()
Gets the timestamp.
|
String |
toString()
Gets the event as a string.
|
String |
toTabDelimitedString()
As
toString but tab delimited. |
String |
toTabDelimitedStringWithColor()
As
toString but tab delimited and with colors |
String |
toWindowsNTLogString()
As
toString but for the Windows NT event log. |
public static final String[] eventClassNames
public ServerEvent(ClientConnectionData clientConnectionData, int eventID, String event, int eventClass)
clientConnectionData
parameter may be null.public int getEventClass()
EventID.EVENTCLASS_*
.EventID.EVENTCLASS_ERROR
,
EventID.EVENTCLASS_CRITICAL
,
EventID.EVENTCLASS_WARNING
,
EventID.EVENTCLASS_INFORMATIONAL
public String getEvent()
public int getEventID()
public String getEventIDString()
public ClientConnectionData getSource()
public Date getTimeStamp()
public String toString()
DD MMM YYYY HH:MM:SS.mmm client______ threadID____ threadName eventClass eventIDString eventTextwhere DD is the day, MM month, YYYY is year with century, HH is hour 0-23, MM is minutes, SS seconds and mmm is milliseconds.
The threadID is displayed as "---" if it's a system thread (i.e. non-ServerThread instance) and the threadName "<System>". Otherwise this name is the name of the service who started executing the thread.
public String toTabDelimitedString()
toString
but tab delimited.public String toTabDelimitedStringWithColor()
toString
but tab delimited and with colorspublic String toWindowsNTLogString()
toString
but for the Windows NT event log.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.