public class FwkTraceEvent extends FwkPresentation implements FwkTraceEventInterface
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.lang.String |
host |
protected long |
level |
protected java.lang.String |
message |
protected java.lang.Object |
source |
protected long |
timestamp |
protected java.lang.String |
user |
static java.lang.String |
version |
Constructor and Description |
---|
FwkTraceEvent(java.lang.Object source,
long level,
java.lang.String message,
java.lang.String host,
java.lang.String user)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHost()
Get the host of the occurance.
|
long |
getLevel()
Get the trace level value.
|
java.lang.String |
getMessage()
Get the message string.
|
java.lang.Object |
getSource()
The object on which the Event initially occurred.
|
long |
getTimeStamp()
Get the time stamp.
|
java.lang.String |
getUser()
Get the user of the trace source.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
protected void |
init(java.lang.Object source,
long level,
java.lang.String message,
long timestamp,
java.lang.String host,
java.lang.String user)
This method initialize the object.
|
java.lang.String |
toString()
The string representation of the trace event.
|
getPresentationString, getPresentationString
getNiceVersion, release
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPresentationString, getPresentationString
release
public static final java.lang.String version
protected long level
protected long timestamp
protected java.lang.String host
protected java.lang.String user
protected java.lang.Object source
protected java.lang.String message
public FwkTraceEvent(java.lang.Object source, long level, java.lang.String message, java.lang.String host, java.lang.String user)
source
- The source object of the event.id
- The ID string of the event.message
- The message string of the event.public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkPresentation
protected void init(java.lang.Object source, long level, java.lang.String message, long timestamp, java.lang.String host, java.lang.String user)
source
- The source object of the event.level
- The trace level value.message
- The message.timestamp
- The timestamp.host
- The host name.user
- The user name.public java.lang.Object getSource()
getSource
in interface FwkTraceEventInterface
public java.lang.String getMessage()
getMessage
in interface FwkTraceEventInterface
public long getLevel()
getLevel
in interface FwkTraceEventInterface
BrickContainer
public long getTimeStamp()
getTimeStamp
in interface FwkTraceEventInterface
public java.lang.String getHost()
getHost
in interface FwkTraceEventInterface
public java.lang.String getUser()
getUser
in interface FwkTraceEventInterface
public java.lang.String toString()
toString
in class java.lang.Object