org.kaariboga.core
Class KaaribogaBase.ListenThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.kaariboga.core.KaaribogaBase.ListenThread
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable
Enclosing class:
KaaribogaBase

class KaaribogaBase.ListenThread
extends java.lang.Thread
implements java.io.Serializable

Listens on the specified port and spawns new threads to receive incoming agents.

See Also:
Serialized Form

Field Summary
private  KaaribogaBase parent
           
private  java.lang.Thread shouldLive
           
private  java.net.Socket socket
           
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
KaaribogaBase.ListenThread(KaaribogaBase parent)
           
 
Method Summary
 void run()
          Accepts connections on the server socket.
 void terminate()
           
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

private KaaribogaBase parent

socket

private java.net.Socket socket

shouldLive

private java.lang.Thread shouldLive
Constructor Detail

KaaribogaBase.ListenThread

public KaaribogaBase.ListenThread(KaaribogaBase parent)
Method Detail

terminate

public void terminate()

run

public void run()
Accepts connections on the server socket.
Overrides:
run in class java.lang.Thread