public interface MercuryEvent
Modifier and Type | Interface and Description |
---|---|
static class |
MercuryEvent.EventMask |
Modifier and Type | Method and Description |
---|---|
long |
getDuration()
duration of this event in millis
|
String |
getInfo()
information for this event.
|
String |
getName()
event name inside type
|
Map<String,Object> |
getPayload()
event's payload
|
Object |
getPayload(String name)
get one of payload values
|
String |
getResult()
result field
|
long |
getStart()
get the event start time as UTC timestapm
|
String |
getTag()
aggregation tag of this event.
|
EventTypeEnum |
getType()
event type
|
boolean |
hasResult() |
void |
setInfo(String info) |
void |
setPayload(Map<String,Object> payload)
set the whole payload
|
void |
setPayload(String name,
Object value)
set the whole payload
|
void |
setResult(String result) |
void |
setTag(String tag) |
void |
start()
start the event
|
void |
stop()
stop the event and calculate the duration
|
EventTypeEnum getType()
String getName()
String getTag()
void setTag(String tag)
String getInfo()
void setInfo(String info)
long getStart()
void start()
void stop()
String getResult()
void setResult(String result)
boolean hasResult()
long getDuration()
Map<String,Object> getPayload()
Object getPayload(String name)
name
- element nameCopyright © 2002–2013 The Apache Software Foundation. All rights reserved.