|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.util.mina.MinaTcpServer
public class MinaTcpServer
A MINA TCP server.
| Constructor Summary | |
|---|---|
MinaTcpServer(org.littleshoot.mina.filter.codec.ProtocolCodecFactory codecFactory,
org.littleshoot.mina.common.IoServiceListener ioServiceListener,
org.littleshoot.mina.common.IoHandler handler)
Creates a new MINA TCP server. |
|
MinaTcpServer(org.littleshoot.mina.filter.codec.ProtocolCodecFactory codecFactory,
org.littleshoot.mina.common.IoServiceListener ioServiceListener,
org.littleshoot.mina.common.IoHandler handler,
String baseThreadName)
Creates a new MINA TCP server. |
|
| Method Summary | |
|---|---|
void |
addIoServiceListener(org.littleshoot.mina.common.IoServiceListener serviceListener)
Adds the specified IoServiceListener to the server. |
void |
start(int port)
Starts the MINA server. |
void |
stop()
Stops the MINA server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MinaTcpServer(org.littleshoot.mina.filter.codec.ProtocolCodecFactory codecFactory,
org.littleshoot.mina.common.IoServiceListener ioServiceListener,
org.littleshoot.mina.common.IoHandler handler)
codecFactory - The codec factory to use with the acceptor.ioServiceListener - The listener for IO service events.handler - The IoHandler for processing incoming data.
public MinaTcpServer(org.littleshoot.mina.filter.codec.ProtocolCodecFactory codecFactory,
org.littleshoot.mina.common.IoServiceListener ioServiceListener,
org.littleshoot.mina.common.IoHandler handler,
String baseThreadName)
codecFactory - The codec factory to use with the acceptor.ioServiceListener - The listener for IO service events.handler - The IoHandler for processing incoming data.baseThreadName - The base name that will be used for threads
processing data arriving on the server.| Method Detail |
|---|
public void start(int port)
throws IOException
MinaServer
start in interface MinaServerport - The port to listen on.
IOException - If we cannot bind to the port.public void stop()
MinaServer
stop in interface MinaServerpublic void addIoServiceListener(org.littleshoot.mina.common.IoServiceListener serviceListener)
MinaServerIoServiceListener to the server.
addIoServiceListener in interface MinaServerserviceListener - The listener to add.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||