org.processmining.framework.remote
Class Service

java.lang.Object
  extended by org.processmining.framework.remote.Service

public class Service
extends java.lang.Object

Author:
christian

Nested Class Summary
protected  class Service.ConnectionHandlerThread
           
 
Field Summary
protected  ServiceHandler handler
           
protected  int port
           
protected  boolean running
           
protected  java.net.ServerSocket serverSocket
           
protected  java.lang.Thread serverThread
           
 
Constructor Summary
Service(int aPort, ServiceHandler aHandler)
           
 
Method Summary
protected  void handleConnection(java.net.Socket socket)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverSocket

protected java.net.ServerSocket serverSocket

port

protected int port

handler

protected ServiceHandler handler

running

protected boolean running

serverThread

protected java.lang.Thread serverThread
Constructor Detail

Service

public Service(int aPort,
               ServiceHandler aHandler)
Method Detail

start

public void start()
           throws java.io.IOException
Throws:
java.io.IOException

stop

public void stop()

handleConnection

protected void handleConnection(java.net.Socket socket)
                         throws java.io.IOException
Throws:
java.io.IOException