public class Event extends Object
Constructor and Description |
---|
Event()
Default constructor
|
Event(Event other)
Copy constructor
|
Event(JsonObject json)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getId()
Get ID of event
|
int |
getLTime()
Get the Lamport clock time
|
String |
getName()
Get name of event
|
String |
getNode()
Get regular expression to filter by node name
|
String |
getPayload()
Get payload of event
|
String |
getService()
Get regular expression to filter by service
|
String |
getTag()
Get regular expression to filter by tag
|
int |
getVersion()
Get version
|
int |
hashCode() |
Event |
setId(String id)
Set ID of event
|
Event |
setLTime(int lTime)
Set the Lamport clock time
|
Event |
setName(String name)
Set name of event
|
Event |
setNode(String node)
Set regular expression to filter by node name
|
Event |
setPayload(String payload)
Set payload of event
|
Event |
setService(String service)
Set regular expression to filter by service
|
Event |
setTag(String tag)
Set regular expression to filter by tag
|
Event |
setVersion(int version)
Set version
|
JsonObject |
toJson()
Convert to JSON
|
public Event()
public Event(Event other)
other
- the one to copypublic Event(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public String getId()
public Event setId(String id)
id
- ID of eventpublic String getName()
public Event setName(String name)
name
- name of eventpublic String getPayload()
public Event setPayload(String payload)
payload
- payload of eventpublic String getNode()
public Event setNode(String node)
node
- regular expression to filter by node namepublic String getService()
public Event setService(String service)
service
- regular expression to filter by servicepublic String getTag()
public Event setTag(String tag)
tag
- regular expression to filter by tagpublic int getVersion()
public Event setVersion(int version)
version
- versionpublic int getLTime()
public Event setLTime(int lTime)
lTime
- the Lamport clock timeCopyright © 2022 Eclipse. All rights reserved.