|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.ibm.datapower.wamt.DeviceLogger
public class DeviceLogger
A simple trace logger that accepts trace entries via HTTP and logs to the appropriate (specified) logger. It is intended to be a centralized log for trace events coming from DataPower appliances deployed in a managed set. DataPower appliances would set up log targets to point to this host/port. It spawns 10 worker threads to catch and log events.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT_2009_2013
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DeviceLogger(int port,
java.util.logging.Logger myLogger)
Create a new DeviceLogger. |
Method Summary | |
---|---|
static DeviceLogger |
getInstance(java.util.logging.Logger devLogger)
Return the singleton instance of a DeviceLogger given a trace logger. |
void |
run()
Run the accept thread that will listen for new connections. |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT_2009_2013
Constructor Detail |
---|
public DeviceLogger(int port, java.util.logging.Logger myLogger)
port
- the listening TCP (HTTP) portmyLogger
- the Logger to which received events will be loggedMethod Detail |
---|
public static DeviceLogger getInstance(java.util.logging.Logger devLogger)
devLogger
- the trace logger to be used by the DeviceLogger
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
DeviceLogger_ClientThread
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |