public interface Event
Modifier and Type | Field and Description |
---|---|
static int |
ALERT |
static int |
CRIT |
static int |
DEBUG |
static int |
EMERG |
static int |
ERR |
static int |
INFO |
static int |
NONE |
static int |
NOTICE |
static java.lang.String[] |
priorityNames |
static int |
TRACE |
static int |
WARNING |
Modifier and Type | Method and Description |
---|---|
boolean |
attributeExists(java.lang.String key)
tests if the attribute exists on the key
|
void |
clearAttributes()
clears all attributes of the event
|
java.lang.String |
getAttribute(java.lang.String key)
returns the attribute on the key
|
java.util.Set<java.lang.String> |
getAttributeNames()
returns the iterator for all the keys of attributes
|
long |
getExpiration()
returns the expiration of the event
|
int |
getPriority()
returns the priority of the event
|
long |
getTimestamp()
returns the timestamp of the event
|
java.lang.String |
removeAttribute(java.lang.String key)
removes the attribute on the key
|
void |
setAttribute(java.lang.String key,
java.lang.String value)
sets the attribute on the key
|
void |
setExpiration(long ts)
sets the expiration of the event
|
void |
setPriority(int p)
sets the priority of the event
|
void |
setTimestamp(long ts)
sets the timestamp of the event
|
static final int EMERG
static final int ALERT
static final int CRIT
static final int ERR
static final int WARNING
static final int NOTICE
static final int INFO
static final int DEBUG
static final int TRACE
static final int NONE
static final java.lang.String[] priorityNames
int getPriority()
void setPriority(int p)
long getTimestamp()
void setTimestamp(long ts)
long getExpiration()
void setExpiration(long ts)
java.lang.String getAttribute(java.lang.String key)
void setAttribute(java.lang.String key, java.lang.String value)
java.lang.String removeAttribute(java.lang.String key)
void clearAttributes()
java.util.Set<java.lang.String> getAttributeNames()
boolean attributeExists(java.lang.String key)