Package org.jeyzer.mx.event
Interface JzrEventInfo
-
public interface JzrEventInfo
JzrEventInfo is a bean class holding monitoring event information
When active, the Jeyzer Recorder will access this info to store it.
The source, scope, event type, event id, level, start time are always set.
All other parameters are optional.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JzrEventCode
getCode()
Get the event code.long
getEndTime()
Get the event end time.java.lang.String
getId()
Get the event id.java.lang.String
getMessage()
Get the event message.JzrEventScope
getScope()
Get the event scope.java.lang.String
getService()
Get the name of the service that initiated that event.java.lang.String
getSource()
Get the name of the source that initiated that event By default the application namelong
getStartTime()
Get the event start timelong
getThreadId()
Get the event thread id.short
getTrustFactor()
Get the event trustFactor.boolean
isOneshot()
Indicates if the event is one shot.In such case, start date equals end date.
-
-
-
Method Detail
-
getSource
java.lang.String getSource()
Get the name of the source that initiated that event By default the application name- Returns:
- the event source name
-
getService
java.lang.String getService()
Get the name of the service that initiated that event. Optional- Returns:
- the event service name
-
getId
java.lang.String getId()
Get the event id. Must be unique- Returns:
- the event id
-
getScope
JzrEventScope getScope()
Get the event scope. By default session one- Returns:
- the event scope
-
getCode
JzrEventCode getCode()
Get the event code. Mandatory- Returns:
- the event code
-
getMessage
java.lang.String getMessage()
Get the event message. Description of the issue and recommendation. Optional.- Returns:
- the event message
-
getTrustFactor
short getTrustFactor()
Get the event trustFactor. Optional. 100 (full trust) by default- Returns:
- the event message
-
getStartTime
long getStartTime()
Get the event start time- Returns:
- the event start time
-
getEndTime
long getEndTime()
Get the event end time. Optional- Returns:
- the event end time
-
getThreadId
long getThreadId()
Get the event thread id. Set only if event scope is action- Returns:
- the event thread id
-
isOneshot
boolean isOneshot()
Indicates if the event is one shot.In such case, start date equals end date.- Returns:
- true if one shot
-
-