Package org.jeyzer.publish.event
Interface JzrEvent
-
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
JzrStandardEvent
public interface JzrEvent extends Cloneable
The Jeyzer event interface describing a Jeyzer applicative monitoring event instance.
Events are created by the application and published through the Jeyzer Monitor handlers.
The id and code must always be set otherwise the event will not be processed when fired or started.
All other parameters are optional.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectclone()Clone the event.JzrEventCodegetCode()Get the applicative event code.StringgetId()Get the event id.StringgetMessage()Get the event message.shortgetTrustFactor()Get the event trustFactor, between 0 and 100.
-
-
-
Method Detail
-
getId
String getId()
Get the event id. Must be unique- Returns:
- the event id
-
getCode
JzrEventCode getCode()
Get the applicative event code. Mandatory.- Returns:
- the applicative event code
-
getMessage
String getMessage()
Get the event message. Description of the issue and recommendation. Optional. If not specified, the applicative event code description could be considered as default message.- Returns:
- the event message
-
getTrustFactor
short getTrustFactor()
Get the event trustFactor, between 0 and 100. Optional. Default is usually 100 (full trust)- Returns:
- the trust factor
-
clone
Object clone()
Clone the event.- Returns:
- the cloned event
-
-