public class XmlRpcServer
extends java.lang.Object
Constructor and Description |
---|
XmlRpcServer(BindAddress bindAddress,
AdvertiseAddress advertiseAddress) |
Modifier and Type | Method and Description |
---|---|
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> |
start(java.lang.Class<T> instanceClass,
T instance)
Start up the remote calling server.
|
public XmlRpcServer(BindAddress bindAddress, AdvertiseAddress advertiseAddress)
public <T extends XmlRpcEndpoint> void start(java.lang.Class<T> instanceClass, T instance)
instanceClass
- the class of the remoting serverinstance
- an instance of the remoting server classpublic void shutdown()
public java.net.URI getUri()
URI
of the serverpublic java.net.InetSocketAddress getAddress()
public AdvertiseAddress getAdvertiseAddress()
public void awaitStart() throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean awaitStart(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public int getPid()
UnsupportedOperationException
otherwise.