This class implements a dispatcher for audit-events. Classes implementing the AuditEventListener interface can register to an instance of this class for being notified upon arrival of new events.
An instance of this dispatcher class can be created by using a given AuditEventReader implementation in which case the dispatcher will continuously read events from that reader and dispatch these to all listeners
Another use is to create an empty or non-connected dispatcher without a given audit reader and externally inject events using the enqueueEvent()
method. This method will add the event(s) to an internal queue and dispatch them to the listeners in a separate thread.
A dispatcher instance can either be persistent or non-peristent. In the persistent mode it will read all events from the given reader and wait for new events to arrive if the reader reached the end of file/input. In non-persistent mode the dispatcher will terminate once no more events can be read from the input-reader.
@author Christian Bockermann <chris@jwall.org>
|
|
|
|
|
|
|
|