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, start
public 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()
XmlRpcServer
shutdown
in class XmlRpcServer
public 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 XmlRpcServer
UnsupportedOperationException
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
ServerException
public NodeIdentifier toNodeIdentifier()
NodeIdentifier
for this SlaveServer