|
|||||||||
| 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.NetworkAuditEventSource
public class NetworkAuditEventSource
This class implements a network client-thread that will connect to a given host and then wait for audit-events to be read from that connection.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
protected |
NetworkAuditEventSource(java.net.Socket s)
|
|
NetworkAuditEventSource(java.lang.String host,
int port,
boolean ssl)
|
| Method Summary | |
|---|---|
void |
addEventListener(AuditEventListener l)
|
void |
close()
|
boolean |
connect(java.lang.String login,
java.lang.String pass)
|
boolean |
hasNext()
This method returns true if there is at least one more event pending, so if hasNext returns true, the next call to nextEvent
should neither fail nor throw an exception. |
AuditEventImpl |
nextEvent()
Returns the next available AuditEvent. |
void |
removeEventListener(AuditEventListener l)
|
void |
run()
|
void |
setFilter(AuditEventFilter f)
This sets a filter on the source. |
| 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 |
| Constructor Detail |
|---|
protected NetworkAuditEventSource(java.net.Socket s)
throws java.lang.Exception
java.lang.Exception
public NetworkAuditEventSource(java.lang.String host,
int port,
boolean ssl)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void addEventListener(AuditEventListener l)
public void removeEventListener(AuditEventListener l)
public boolean hasNext()
AuditEventSourcehasNext returns true, the next call to nextEvent
should neither fail nor throw an exception.
hasNext in interface AuditEventSourcetrue iff there is another event available.public AuditEventImpl nextEvent()
AuditEventSourcenull
is returned.
nextEvent in interface AuditEventSourcepublic void setFilter(AuditEventFilter f)
AuditEventSourcenull.
setFilter in interface AuditEventSourcef - The filter that determines the events which are returned.
public boolean connect(java.lang.String login,
java.lang.String pass)
throws java.lang.Exception
java.lang.Exceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||