public class Event extends Object implements Serializable, Comparable<Event>
| Constructor and Description |
|---|
Event()
Default constructor.
|
Event(String pSource,
String pType,
String pName,
String pAction)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Event evt) |
String |
getAction()
Getter accessor for attribute 'action'.
|
Map<String,String> |
getCustomKeys()
Getter accessor for attribute 'customKeys'.
|
Date |
getDate()
Getter accessor for attribute 'timestamp'.
|
long |
getDuration()
Getter accessor for attribute 'duration'.
|
String |
getHostName()
Getter accessor for attribute 'hostName'.
|
String |
getKey(String key) |
String |
getName()
Getter accessor for attribute 'name'.
|
String |
getSource()
Getter accessor for attribute 'source'.
|
long |
getTimestamp()
Getter accessor for attribute 'timestamp'.
|
String |
getType()
Getter accessor for attribute 'type'.
|
String |
getUser()
Getter accessor for attribute 'user'.
|
String |
getUuid()
Getter accessor for attribute 'uuid'.
|
String |
getValue()
Getter accessor for attribute 'value'.
|
void |
put(String key,
String value)
Add custom key to event.
|
void |
setAction(String action)
Setter accessor for attribute 'action'.
|
void |
setCustomKeys(Map<String,String> customKeys)
Setter accessor for attribute 'customKeys'.
|
void |
setDuration(long duration)
Setter accessor for attribute 'duration'.
|
void |
setHostName(String hostName)
Setter accessor for attribute 'hostName'.
|
void |
setName(String name)
Setter accessor for attribute 'name'.
|
void |
setSource(String source)
Setter accessor for attribute 'source'.
|
void |
setTimestamp(long timestamp)
Setter accessor for attribute 'timestamp'.
|
void |
setType(String type)
Setter accessor for attribute 'type'.
|
void |
setUser(String user)
Setter accessor for attribute 'user'.
|
void |
setUuid(String uuid)
Setter accessor for attribute 'uuid'.
|
void |
setValue(String value)
Setter accessor for attribute 'value'.
|
String |
toJson()
Serialized as a Json document.
|
String |
toString() |
public String toJson()
public void put(String key, String value)
key - custom keyvalue - current valuepublic long getTimestamp()
public Date getDate()
public String getUuid()
public void setUuid(String uuid)
uuid - new value for 'uuid 'public String getHostName()
public void setHostName(String hostName)
hostName - new value for 'hostName 'public String getSource()
public void setSource(String source)
source - new value for 'source 'public String getUser()
public void setUser(String user)
user - new value for 'user 'public String getName()
public void setName(String name)
name - new value for 'name 'public String getType()
public void setType(String type)
type - new value for 'type 'public String getAction()
public void setAction(String action)
action - new value for 'action 'public Map<String,String> getCustomKeys()
public void setCustomKeys(Map<String,String> customKeys)
customKeys - new value for 'customKeys 'public void setTimestamp(long timestamp)
timestamp - new value for 'timestamp 'public long getDuration()
public void setDuration(long duration)
duration - new value for 'duration 'public String getValue()
public void setValue(String value)
value - new value for 'value 'public int compareTo(Event evt)
compareTo in interface Comparable<Event>Copyright © 2013–2017 FF4J. All rights reserved.