com.agentfactory.cldc.p2pmig
Class ServerThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.agentfactory.cldc.p2pmig.ServerThread
All Implemented Interfaces:
java.lang.Runnable

public class ServerThread
extends java.lang.Thread

The server thread creates a server socket connection to receive incomming socket connections and add incomming agents to the local agent platform.

Author:
Conor Muldoon

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
ServerThread(java.lang.String[] args, MigrationPlatform mp)
          Creates an instance of the server thread.
 
Method Summary
 void run()
          Accepts socket connections and adds incomming agents to the local platform.
 
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
 

Constructor Detail

ServerThread

public ServerThread(java.lang.String[] args,
                    MigrationPlatform mp)
Creates an instance of the server thread.

Parameters:
args - the arguments passed to the peer to peer migration manager.
mp - the local agent platform.
Method Detail

run

public void run()
Accepts socket connections and adds incomming agents to the local platform.

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