public class XBTCPRemoteServer extends java.lang.Object implements XBRemoteServer
| Modifier and Type | Class and Description |
|---|---|
class |
XBTCPRemoteServer.XBL1PullInputStream |
| 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)
Open service handler
|
void |
open(int port,
java.net.InetAddress bindAddr)
Open service handler
|
void |
removeXBProcedure(XBProcedure procedure)
Unregister procedure handling
|
void |
respondMessage(XBInputStream input,
XBOutputStream 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 XBRemoteServerpublic void removeXBProcedure(XBProcedure procedure)
XBRemoteServerremoveXBProcedure in interface XBRemoteServerpublic 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(XBInputStream input, XBOutputStream 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