com.ibm.datapower.wamt
Class DeviceLogger_ClientThread

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

public class DeviceLogger_ClientThread
extends java.lang.Thread

A thread that will read events from an accepted socket and log them. All new sockets get put on a shared pool from which client threads pull.


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
 
Method Summary
static void processRequest(java.net.Socket clientSocket)
          Process an inbound socket by adding to the shared pool.
static void processResponse(java.net.Socket clientSocket, java.lang.String reqBody)
          Send a response to the client that the event was logged
 void run()
          Run the client thread that will take a new connection from a shared pool and pull an event from it to log.
 
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
Method Detail

run

public void run()
Run the client thread that will take a new connection from a shared pool and pull an event from it to log.

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

processRequest

public static void processRequest(java.net.Socket clientSocket)
Process an inbound socket by adding to the shared pool.

Parameters:
clientSocket - the Socket that has just been accepted

processResponse

public static void processResponse(java.net.Socket clientSocket,
                                   java.lang.String reqBody)
Send a response to the client that the event was logged

Parameters:
clientSocket - the Socket over which to send the response
reqBody - not used


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