org.ros.internal.node.server
Class XmlRpcServer
java.lang.Object
org.ros.internal.node.server.XmlRpcServer
- Direct Known Subclasses:
- MasterServer, SlaveServer
public class XmlRpcServer
- extends java.lang.Object
Base class for an XML-RPC server.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlRpcServer
public XmlRpcServer(BindAddress bindAddress,
AdvertiseAddress advertiseAddress)
start
public <T extends XmlRpcEndpoint> void start(java.lang.Class<T> instanceClass,
T instance)
- Start up the remote calling server.
- Parameters:
instanceClass
- the class of the remoting serverinstance
- an instance of the remoting server class
shutdown
public void shutdown()
- Shut the remote call server down.
getUri
public java.net.URI getUri()
- Returns:
- the
URI
of the server
getAddress
public java.net.InetSocketAddress getAddress()
getAdvertiseAddress
public AdvertiseAddress getAdvertiseAddress()
awaitStart
public void awaitStart()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
awaitStart
public boolean awaitStart(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
getPid
public int getPid()
- Returns:
- PID of node process if available, throws
UnsupportedOperationException
otherwise.