org.mobicents.slee.resource.lab.stack
Class RAFStackThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.mobicents.slee.resource.lab.stack.RAFStackThread
All Implemented Interfaces:
java.lang.Runnable

public class RAFStackThread
extends java.lang.Thread

RAStackThread implements a single working thread to work on incoming data after RAFStack.serversocket.accept() returns with a socket.
The thread simply receives the byte[] stream information and publish it to the registered listeners.
The thread terminates immediately after information was received and the connection is closed.

Author:
Michael Maretzke

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
RAFStackThread(java.net.Socket socket, RAFStack parent, java.util.ArrayList listener)
          Create an instance of RAStackThread
 
Method Summary
 void run()
           
 
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

RAFStackThread

public RAFStackThread(java.net.Socket socket,
                      RAFStack parent,
                      java.util.ArrayList listener)
Create an instance of RAStackThread

Parameters:
socket - the socket returned by RAFStack.serversocket.accept()
parent - the thread owning parent instance
listener - the listeners to be informed when information received.
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread


Copyright © 2009. All Rights Reserved.