public interface EventFactory
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
Event |
createEvent(EventSpec eventSpec,
java.util.Map<java.lang.String,java.lang.Object> nvs,
long timestamp)
Creates an event from pairs of attribute name and value.
|
Event |
createEvent(EventSpec eventSpec,
java.lang.Object[] vals,
long timestamp)
Creates an event from the array of attribute values.
|
Event |
createHeartbeat(EventSpec eventSpec,
long ts)
Creates a heartbeat event
|
Event createEvent(EventSpec eventSpec, java.util.Map<java.lang.String,java.lang.Object> nvs, long timestamp)
eventSpec - - the event specificationnvs - - the pairs of attribute name and valuetimestamp - - the event timestamp in nanosecondsEvent createEvent(EventSpec eventSpec, java.lang.Object[] vals, long timestamp)
eventSpec - - the event specificationvals - - array of attribute valuetimestamp - - the event timestamp in nanoseconds