public class Event
extends java.util.EventObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Event.ParamsBuilder
This class is a fluent builder class for building up the parameter map.
|
| Constructor and Description |
|---|
Event(java.lang.Object source,
java.lang.String eventID,
EventSeverity severity,
java.util.Map params)
Creates a new Event.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEventGroupID()
Returns the event group identifier.
|
java.lang.String |
getEventID()
Returns the event identifier.
|
java.lang.String |
getEventKey()
Returns the event key.
|
java.lang.Object |
getParam(java.lang.String key)
Returns a parameter.
|
java.util.Map |
getParams()
Returns an unmodifiable
Map with all event parameters. |
EventSeverity |
getSeverity()
Returns the severity level.
|
static Event.ParamsBuilder |
paramsBuilder()
Creates and returns a fluent builder object for building up the parameter map.
|
void |
setSeverity(EventSeverity severity)
Sets the event's severity level.
|
public Event(java.lang.Object source,
java.lang.String eventID,
EventSeverity severity,
java.util.Map params)
source - the object that creates the eventeventID - the unique identifier of the eventseverity - the severity levelparams - the event parameters (a map of name/value pairs)public java.lang.String getEventID()
public java.lang.String getEventGroupID()
public java.lang.String getEventKey()
public EventSeverity getSeverity()
public void setSeverity(EventSeverity severity)
severity - the new event severitypublic java.lang.Object getParam(java.lang.String key)
key - the key to the parameterpublic java.util.Map getParams()
Map with all event parameters.public static Event.ParamsBuilder paramsBuilder()
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.