IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.cs.servlet
Class ProcessEventThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.btt.cs.servlet.ProcessEventThread
All Implemented Interfaces:
java.lang.Runnable

public class ProcessEventThread
extends java.lang.Thread

The ProcessEventThread class is responsible for obtaining the event, creating a CSNotificationEvent that has as data the event and invoking CSClient instance to fire the event.


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
ProcessEventThread()
          Constructor for ProcessEventThread.
ProcessEventThread(CSClient client)
          Constructor for ProcessEventThread.
ProcessEventThread(java.lang.Runnable target)
          Constructor for ProcessEventThread.
ProcessEventThread(java.lang.Runnable target, java.lang.String name)
          Constructor for ProcessEventThread.
ProcessEventThread(java.lang.String name)
          Constructor for ProcessEventThread.
ProcessEventThread(java.lang.ThreadGroup group, java.lang.Runnable target)
          Constructor for ProcessEventThread.
ProcessEventThread(java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name)
          Constructor for ProcessEventThread.
ProcessEventThread(java.lang.ThreadGroup group, java.lang.String name)
          Constructor for ProcessEventThread.
 
Method Summary
 void run()
          Processes the received event.
 void setSocket(java.net.Socket aSocket)
          Sets the value of the server socket attribute.
 
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

ProcessEventThread

public ProcessEventThread()
Constructor for ProcessEventThread.


ProcessEventThread

public ProcessEventThread(CSClient client)
Constructor for ProcessEventThread.

Parameters:
client - The CSClient instance

ProcessEventThread

public ProcessEventThread(java.lang.Runnable target)
Constructor for ProcessEventThread.

Parameters:
target - The target

ProcessEventThread

public ProcessEventThread(java.lang.ThreadGroup group,
                          java.lang.Runnable target)
Constructor for ProcessEventThread.

Parameters:
group - The group
target - The target

ProcessEventThread

public ProcessEventThread(java.lang.String name)
Constructor for ProcessEventThread.

Parameters:
name - The name

ProcessEventThread

public ProcessEventThread(java.lang.ThreadGroup group,
                          java.lang.String name)
Constructor for ProcessEventThread.

Parameters:
group - The group
name - The name

ProcessEventThread

public ProcessEventThread(java.lang.Runnable target,
                          java.lang.String name)
Constructor for ProcessEventThread.

Parameters:
target - The target
name - The name

ProcessEventThread

public ProcessEventThread(java.lang.ThreadGroup group,
                          java.lang.Runnable target,
                          java.lang.String name)
Constructor for ProcessEventThread.

Parameters:
group - The group
target - The target
name - The name
Method Detail

run

public void run()
Processes the received event. Executes the following process: - Reads from the socket input stream: - Fires the event - Closes the socket

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

setSocket

public void setSocket(java.net.Socket aSocket)
Sets the value of the server socket attribute.

Parameters:
aSocket - Socket used to receive events

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010