public class AuditEventStreamHandler extends Thread implements AuditEventListener
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
AuditEventStreamHandler(SyslogReceiverThread parent,
Socket socket,
boolean gzip,
boolean base64) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(AuditEventListener l) |
void |
close() |
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() |
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(SyslogReceiverThread parent, Socket socket, boolean gzip, boolean base64) throws Exception
Exceptionpublic void addListener(AuditEventListener l)
public void run()
run in interface Runnablerun in class ThreadThread.run()public void eventArrived(AuditEvent evt)
AuditEventListenerAfter 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)
AuditEventListenereventsArrived in interface AuditEventListenerevents - The block of events arrived.public void close()
Copyright © 2021 jwall.org. All rights reserved.