org.jwall.web.audit.net
Class AuditEventMLogcReceiver
java.lang.Object
java.lang.Thread
org.jwall.web.audit.net.AuditEventMLogcReceiver
- All Implemented Interfaces:
- Runnable, EventListener<AuditEvent>, AuditEventListener
public class AuditEventMLogcReceiver
- extends Thread
- implements AuditEventListener
This class implements a simple SSL based server component for receiving ModSecurity
audit events from the mlogc application.
- Author:
- Christian Bockermann <chris@jwall.org>
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, 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, yield |
AuditEventMLogcReceiver
public AuditEventMLogcReceiver()
throws Exception
- Create a new instance of this class. The instance will register itself to
all its forked client handlers, thus it will receive all events
- Throws:
Exception
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
eventArrived
public void eventArrived(String sensorId,
AuditEvent evt)
eventArrived
public void eventArrived(AuditEvent evt)
- Description copied from interface:
AuditEventListener
- This method is called when a new event arrives at the listener.
The Listener should be threaded and response-time to this method
should be as small as possible.
After the dispatcher calls this method each listener gets a call to
#notify(), thus a listener might wait for packets to arrive.
- Specified by:
eventArrived in interface EventListener<AuditEvent>- Specified by:
eventArrived in interface AuditEventListener
- Parameters:
evt - The event which arrived.
eventsArrived
public void eventsArrived(Collection<AuditEvent> evts)
- Description copied from interface:
AuditEventListener
- This method is called for notifying the listener of arrival of
several events in a block. Usually, this method is implemented by
calling
AuditEventListener.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.
- Specified by:
eventsArrived in interface AuditEventListener
- Parameters:
evts - The block of events arrived.
main
public static void main(String[] args)
- Parameters:
args -
Copyright © 2012 jwall.org. All Rights Reserved.