|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simantics.databoard.method.Server
public class Server
Server opens a server socket and accepts incoming connections.
Methods are invoked in read thread. Therefore method invocation blocks the whole socket. It is highly recommended that that MethodInterface implementation is non-blocking.
Constructor Summary | |
---|---|
Server(int port,
MethodInterface handler)
Create new method interface server. |
Method Summary | |
---|---|
void |
close()
Stop listening for new connections and shutdown existing connections. |
int |
getPort()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Server(int port, MethodInterface handler) throws java.io.IOException
port
- handler
- method handler of local methods or
java.io.IOException
Method Detail |
---|
public void close()
public int getPort()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |