org.kaariboga.core
Class KaaribogaBase.ReceiveMessageThread

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

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

Handles a messages incoming through a socket connection. It the message contains an agent it initializes it and puts it to the kaariboga list.

See Also:
Serialized Form

Field Summary
private  java.net.InetAddress address
           
private  Kaariboga agent
           
private  KaaribogaBase base
           
private  KaaribogaMessage message
           
private  KaaribogaMessage outMessage
           
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.ReceiveMessageThread(KaaribogaBase b, java.net.Socket socket)
          Creates a new Thread to receive a message.
 
Method Summary
 void run()
          Just handles the incoming message.
 
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

socket

private java.net.Socket socket

base

private KaaribogaBase base

message

private KaaribogaMessage message

outMessage

private KaaribogaMessage outMessage

address

private java.net.InetAddress address

agent

private Kaariboga agent
Constructor Detail

KaaribogaBase.ReceiveMessageThread

public KaaribogaBase.ReceiveMessageThread(KaaribogaBase b,
                                          java.net.Socket socket)
Creates a new Thread to receive a message.
Parameters:
b - The KaaribogaBase of this thread.
socket - Socket of the incoming connection.
Method Detail

run

public void run()
Just handles the incoming message.
Overrides:
run in class java.lang.Thread