dimawo.middleware.communication.server
Class ServerLoop

java.lang.Object
  extended by dimawo.middleware.communication.server.ServerLoop
All Implemented Interfaces:
Runnable

public class ServerLoop
extends Object
implements Runnable


Constructor Summary
ServerLoop(int port, ErrorHandler com, ConnectionHandler cH, SocketFactory sockFact)
           
 
Method Summary
 int getPort()
           
 boolean isStopped()
           
 void join()
           
 void run()
           
 void start()
          Starts the server.
 void stop()
          Requests the server to stop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerLoop

public ServerLoop(int port,
                  ErrorHandler com,
                  ConnectionHandler cH,
                  SocketFactory sockFact)
           throws IOException
Throws:
IOException
Method Detail

getPort

public int getPort()

start

public void start()
Starts the server.


stop

public void stop()
Requests the server to stop.

Throws:
InterruptedException

join

public void join()
          throws InterruptedException
Throws:
InterruptedException

run

public void run()
Specified by:
run in interface Runnable

isStopped

public boolean isStopped()


Copyright © 2011 DiMaWo Team. All Rights Reserved.