Package org.jeyzer.mx.event
Interface JzrEventInfo
-
public interface JzrEventInfoJzrEventInfo 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 JzrEventCodegetCode()Get the event code.longgetEndTime()Get the event end time.java.lang.StringgetId()Get the event id.java.lang.StringgetMessage()Get the event message.JzrEventScopegetScope()Get the event scope.java.lang.StringgetService()Get the name of the service that initiated that event.java.lang.StringgetSource()Get the name of the source that initiated that event By default the application namelonggetStartTime()Get the event start timelonggetThreadId()Get the event thread id.shortgetTrustFactor()Get the event trustFactor.booleanisOneshot()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
-
-