|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.jwall.web.audit.net.NetworkEventServer
public class NetworkEventServer
This class implements a small event-server thread. It will listen on
a socket and wait for a NetworkAuditEventSource to connect
and push all events to the connected event-sources.
This class is not well-tested!
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static int |
CLIENT_POLL_TIME
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
NetworkEventServer(int port,
java.util.Properties auth)
|
|
NetworkEventServer(java.lang.String serv,
int port,
java.util.Properties auth)
|
|
NetworkEventServer(java.lang.String s,
java.util.Properties auth)
|
|
| Method Summary | |
|---|---|
static NetworkEventServer |
createSSLEventServer(java.io.File keyFile,
java.lang.String pass,
int port,
java.util.Properties auth)
|
static NetworkEventServer |
createSSLEventServer(java.io.InputStream keyIn,
int port,
java.util.Properties auth)
|
static NetworkEventServer |
createSSLEventServer(java.io.InputStream keyStream,
java.lang.String pass,
int port,
java.util.Properties auth)
|
void |
eventArrived(AuditEvent e)
This method is called when a new event arrives at the listener. |
void |
run()
|
void |
unregisterClient(NetworkClientWorkerThread t)
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CLIENT_POLL_TIME
| Constructor Detail |
|---|
public NetworkEventServer(java.lang.String s,
java.util.Properties auth)
throws java.lang.Exception
java.lang.Exception
public NetworkEventServer(java.lang.String serv,
int port,
java.util.Properties auth)
throws java.lang.Exception
java.lang.Exception
public NetworkEventServer(int port,
java.util.Properties auth)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public static NetworkEventServer createSSLEventServer(java.io.File keyFile,
java.lang.String pass,
int port,
java.util.Properties auth)
throws java.lang.Exception
java.lang.Exception
public static NetworkEventServer createSSLEventServer(java.io.InputStream keyIn,
int port,
java.util.Properties auth)
throws java.lang.Exception
java.lang.Exception
public static NetworkEventServer createSSLEventServer(java.io.InputStream keyStream,
java.lang.String pass,
int port,
java.util.Properties auth)
throws java.lang.Exception
java.lang.Exceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void eventArrived(AuditEvent e)
AuditEventListenernotiy(), thus a listener might wait for packets
to arrive.
eventArrived in interface AuditEventListenerpublic void unregisterClient(NetworkClientWorkerThread t)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||