| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.jemmrpc.example.echo.EchoServer
public class EchoServer
EchoServer is a simple test server that receives EchoRequest messages from clients and responds with EchoReply messages.
| Constructor Summary | |
|---|---|
| EchoServer(int port)Creates an instance of the echo server | |
| Method Summary | |
|---|---|
|  void | asyncEcho(java.lang.String message)Asynchronous echo call. | 
|  java.lang.String | echo(java.lang.String message)A synchronous echo call, response is returned in return value. | 
|  void | shutdown()Shutown the echo server. | 
|  void | start()Start the echo server and return once it is initialised. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public EchoServer(int port)
port - The port to listen on.| Method Detail | 
|---|
public void start()
public void asyncEcho(java.lang.String message)
EchoServerIFEchoClientIF.
asyncEcho in interface EchoServerIFmessage - The message to be echoedpublic java.lang.String echo(java.lang.String message)
EchoServerIF
echo in interface EchoServerIFmessage - The message to send to the server
public void shutdown()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||