public class SlaveServer extends XmlRpcServer
| Constructor and Description |
|---|
SlaveServer(GraphName nodeName,
BindAddress tcpRosBindAddress,
AdvertiseAddress tcpRosAdvertiseAddress,
BindAddress xmlRpcBindAddress,
AdvertiseAddress xmlRpcAdvertiseAddress,
MasterClient master,
TopicParticipantManager topicParticipantManager,
ServiceManager serviceManager,
ParameterManager parameterManager,
java.util.concurrent.ScheduledExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Object> |
getBusInfo(java.lang.String callerId) |
java.util.List<java.lang.Object> |
getBusStats(java.lang.String callerId) |
java.net.URI |
getMasterUri() |
int |
getPid() |
java.util.Collection<DefaultPublisher<?>> |
getPublications() |
java.util.Collection<DefaultSubscriber<?>> |
getSubscriptions() |
AdvertiseAddress |
getTcpRosAdvertiseAddress() |
int |
paramUpdate(GraphName parameterName,
java.lang.Object parameterValue) |
void |
publisherUpdate(java.lang.String callerId,
java.lang.String topicName,
java.util.Collection<java.net.URI> publisherUris) |
ProtocolDescription |
requestTopic(java.lang.String topicName,
java.util.Collection<java.lang.String> protocols) |
void |
shutdown()
Shut the remote call server down.
|
void |
start()
Start the XML-RPC server.
|
NodeIdentifier |
toNodeIdentifier() |
awaitStart, awaitStart, getAddress, getAdvertiseAddress, getUri, startpublic SlaveServer(GraphName nodeName, BindAddress tcpRosBindAddress, AdvertiseAddress tcpRosAdvertiseAddress, BindAddress xmlRpcBindAddress, AdvertiseAddress xmlRpcAdvertiseAddress, MasterClient master, TopicParticipantManager topicParticipantManager, ServiceManager serviceManager, ParameterManager parameterManager, java.util.concurrent.ScheduledExecutorService executorService)
public AdvertiseAddress getTcpRosAdvertiseAddress()
public void start()
TcpRosServer is initialized first so that the slave server returns
correct information when topics are requested.public void shutdown()
XmlRpcServershutdown in class XmlRpcServerpublic java.util.List<java.lang.Object> getBusStats(java.lang.String callerId)
public java.util.List<java.lang.Object> getBusInfo(java.lang.String callerId)
public java.net.URI getMasterUri()
public int getPid()
getPid in class XmlRpcServerUnsupportedOperationException otherwise.public java.util.Collection<DefaultSubscriber<?>> getSubscriptions()
public java.util.Collection<DefaultPublisher<?>> getPublications()
public int paramUpdate(GraphName parameterName, java.lang.Object parameterValue)
parameterName - parameterValue - public void publisherUpdate(java.lang.String callerId,
java.lang.String topicName,
java.util.Collection<java.net.URI> publisherUris)
public ProtocolDescription requestTopic(java.lang.String topicName, java.util.Collection<java.lang.String> protocols) throws ServerException
ServerExceptionpublic NodeIdentifier toNodeIdentifier()
NodeIdentifier for this SlaveServer