iglu.net
Class PortServerThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--iglu.net.PortServerThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
URLServerThread

public class PortServerThread
extends java.lang.Thread

A simple wrapper for PortServer. Makes it a thread without adding any additional functionality. It extends thread and uses delegation to implement PortServer functionality.

Version:
0.1
Author:
Travis Bauer trbauer@indiana.edu
See Also:
PortServer

Field Summary
 PortServer psvr
          The PortServer it is using.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PortServerThread(java.net.InetAddress addr, java.lang.Integer port, ClientCreator ncc)
          Sets up the server for use.
 
Method Summary
 void run()
          Starts the thread simply by starting the server.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Field Detail

psvr

public PortServer psvr
The PortServer it is using.

Constructor Detail

PortServerThread

public PortServerThread(java.net.InetAddress addr,
                        java.lang.Integer port,
                        ClientCreator ncc)
Sets up the server for use.

Parameters:
addr - The internet address the server will run on.
port - The port to listen to.
ncc - The ClientCreator for the new server.
Method Detail

run

public void run()
Starts the thread simply by starting the server.

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