org.ow2.carol.cmi.smart.server
Class SmartEndPoint

java.lang.Object
  extended by org.ow2.carol.cmi.smart.server.SmartEndPoint
All Implemented Interfaces:
java.lang.Runnable

public class SmartEndPoint
extends java.lang.Object
implements java.lang.Runnable

This class receives the request from clients, handle them and send an answer.

Author:
The new CMI team, Florent Benoit

Constructor Summary
SmartEndPoint()
           
 
Method Summary
 void run()
          Start the thread for looking at the selectors.
 void setPortNumber(int number)
          Set the Port number.
 void setSmartConnector(org.ow2.carol.cmi.smart.api.SmartConnector connector)
          Set the smart connector.
 void start()
          Start method.
 void stop()
          Stop method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmartEndPoint

public SmartEndPoint()
Method Detail

start

public void start()
           throws SmartServerException
Start method.

Throws:
SmartServerException - if the start has failed.

run

public void run()
Start the thread for looking at the selectors.

Specified by:
run in interface java.lang.Runnable

setSmartConnector

public void setSmartConnector(org.ow2.carol.cmi.smart.api.SmartConnector connector)
Set the smart connector.

Parameters:
connector - the given smart connector.

setPortNumber

public void setPortNumber(int number)
Set the Port number.

Parameters:
number - the given port number.

stop

public void stop()
          throws SmartServerException
Stop method.

Throws:
SmartServerException - if the stop is failing.


Copyright © 2008 OW2 Consortium. All Rights Reserved.