public class AuditEventStreamHandler extends Thread implements AuditEventListener
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
AuditEventStreamHandler(SyslogReceiver parent,
Socket socket,
boolean gzip) |
| Modifier and Type | Method and Description |
|---|---|
void |
eventArrived(AuditEvent evt)
This method is called when a new event arrives at the listener.
|
void |
eventsArrived(Collection<AuditEvent> events)
This method is called for notifying the listener of arrival of
several events in a block.
|
void |
run() |
void |
setEventStore(AuditEventListener store) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic AuditEventStreamHandler(SyslogReceiver parent, Socket socket, boolean gzip) throws Exception
Exceptionpublic void setEventStore(AuditEventListener store)
public void run()
run in interface Runnablerun in class ThreadThread.run()public void eventArrived(AuditEvent evt)
AuditEventListener
After the dispatcher calls this method each listener gets a call to
#notify(), thus a listener might wait for packets to arrive.
eventArrived in interface EventListener<AuditEvent>eventArrived in interface AuditEventListenerevt - The event which arrived.public void eventsArrived(Collection<AuditEvent> events)
AuditEventListenerAuditEventListener.eventArrived(AuditEvent) for each of the given
events, but may be handled in a more efficient way by implementations
capable of processing blocks of events.eventsArrived in interface AuditEventListenerevents - The block of events arrived.Copyright © 2014 jwall.org. All Rights Reserved.