getEvent Method

Returns the Event object associated with the requesting Accumulator.

Syntax

Event getEvent();

Parameters

None.

Example

Listener listener = new Listener("sampleApp", "4.0");
Container store = listener.lookupContainer("storeName");
Event creations = store.lookupEvent(PCHeventClass.RPC, "document creations");
Accumulator numCreations =  creations.lookupAccumulator(Listener.DURATION);
...
Event associatedEvent = numCreations.getEvent();
...

See Also