org.ros.internal.node.server
Class XmlRpcServer

java.lang.Object
  extended by 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.


Constructor Summary
XmlRpcServer(BindAddress bindAddress, AdvertiseAddress advertiseAddress)
           
 
Method Summary
 void awaitStart()
           
 boolean awaitStart(long timeout, java.util.concurrent.TimeUnit unit)
           
 java.net.InetSocketAddress getAddress()
           
 AdvertiseAddress getAdvertiseAddress()
           
 int getPid()
           
 java.net.URI getUri()
           
 void shutdown()
          Shut the remote call server down.
<T extends XmlRpcEndpoint>
void
start(java.lang.Class<T> instanceClass, T instance)
          Start up the remote calling server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRpcServer

public XmlRpcServer(BindAddress bindAddress,
                    AdvertiseAddress advertiseAddress)
Method Detail

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 server
instance - 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.