lookupAccumulator Method

Creates an Accumulator object for an Event object of the Listener. This method will create an Accumulator object only when that object does not already exist. If the object already exists, the existing object is returned.

Syntax

Accumulator lookupAccumulator(String accumulatorName);

Parameters

accumulatorName
[in] Required String, which provides the name of the Accumulator object. The string may be passed as Unicode that contains any printable characters, excluding the newline character.

Example

Listener listener = new Listener("sampleApp", "4.0");
Container store = listener.lookupContainer("storeName");
Event creations = store.lookupEvent("document creations");
Accumulator numCreations = creations.lookupAccumulator("number of document creations");
...

See Also