public class XBTCPRemoteServer extends java.lang.Object implements XBRemoteServer
| Modifier and Type | Class and Description |
|---|---|
class |
XBTCPRemoteServer.XBTPullInputStream |
| Modifier and Type | Field and Description |
|---|---|
protected XBACatalog |
catalog |
| Constructor and Description |
|---|
XBTCPRemoteServer(XBACatalog catalog)
Creates a new instance of XBServiceHandler
|
| Modifier and Type | Method and Description |
|---|---|
void |
addXBProcedure(XBProcedure procedure)
Register procedure handling.
|
XBACatalog |
getCatalog() |
java.util.Map<XBBlockType,XBProcedure> |
getProcMap() |
java.net.ServerSocket |
getXbService() |
boolean |
isStop() |
void |
open(int port)
Opens service handler
|
void |
open(int port,
java.net.InetAddress bindAddr)
Opens service handler
|
void |
removeXBProcedure(XBProcedure procedure)
Unregister procedure handling.
|
void |
respondMessage(XBTokenInputStream input,
XBEventListener output) |
void |
run()
Providing main loop
|
void |
setStop(boolean stop) |
void |
stop() |
protected XBACatalog catalog
public XBTCPRemoteServer(XBACatalog catalog)
public void addXBProcedure(XBProcedure procedure)
XBRemoteServeraddXBProcedure in interface XBRemoteServerprocedure - procedure handler to addpublic void removeXBProcedure(XBProcedure procedure)
XBRemoteServerremoveXBProcedure in interface XBRemoteServerprocedure - procedure handler to removepublic void open(int port)
throws java.io.IOException
port - the port number, or 0 to use any free port.java.io.IOException - if an I/O error occurs when opening the socket.public void open(int port,
java.net.InetAddress bindAddr)
throws java.io.IOException
port - the port number, or 0 to use any free port.bindAddr - the local InetAddress the server will bind tojava.io.IOException - if an I/O error occurs when opening the socket.public void run()
throws XBProcessingException
XBProcessingExceptionpublic void stop()
public void respondMessage(XBTokenInputStream input, XBEventListener output) throws java.io.IOException, XBProcessingException
java.io.IOExceptionXBProcessingExceptionpublic XBACatalog getCatalog()
public java.net.ServerSocket getXbService()
public boolean isStop()
public java.util.Map<XBBlockType,XBProcedure> getProcMap()
public void setStop(boolean stop)
stop - the stop to set