public class NetworkClientWorkerThread extends Thread implements AuditEventListener
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_LOGIN_FAILURES |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
NetworkClientWorkerThread(Socket sock,
Authenticator users,
NetworkEventServer serv) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCommand() |
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.
|
protected void |
finalize() |
boolean |
isClosed() |
void |
run() |
String |
toString() |
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, yieldpublic static final int MAX_LOGIN_FAILURES
public NetworkClientWorkerThread(Socket sock, Authenticator users, NetworkEventServer serv) throws Exception
Exceptionpublic 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.public boolean isClosed()
public void checkCommand()
Copyright © 2014 jwall.org. All Rights Reserved.