com.ibm.datapower.wamt
Class DeviceLogger

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.datapower.wamt.DeviceLogger
All Implemented Interfaces:
java.lang.Runnable

public class DeviceLogger
extends java.lang.Thread

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

COPYRIGHT_2009_2013

public static final java.lang.String COPYRIGHT_2009_2013
See Also:
Constant Field Values
Constructor Detail

DeviceLogger

public DeviceLogger(int port,
                    java.util.logging.Logger myLogger)
Create a new DeviceLogger.

Parameters:
port - the listening TCP (HTTP) port
myLogger - the Logger to which received events will be logged
Method Detail

getInstance

public static DeviceLogger getInstance(java.util.logging.Logger devLogger)
Return the singleton instance of a DeviceLogger given a trace logger.

Parameters:
devLogger - the trace logger to be used by the DeviceLogger
Returns:
the singleton DeviceLogger

run

public void run()
Run the accept thread that will listen for new connections. This will send this off to a client thread for processing.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
See Also:
DeviceLogger_ClientThread


© Copyright IBM Corp. 2006, 2010 All Rights Reserved.