org.ros.internal.node.service
Class ServiceManager

java.lang.Object
  extended by org.ros.internal.node.service.ServiceManager

public class ServiceManager
extends java.lang.Object

Manages a collection of ServiceServers and ServiceClients.


Constructor Summary
ServiceManager()
           
 
Method Summary
 void addClient(DefaultServiceClient<?,?> serviceClient)
           
 void addServer(DefaultServiceServer<?,?> serviceServer)
           
 DefaultServiceClient<?,?> getClient(GraphName name)
           
 java.util.List<DefaultServiceClient<?,?>> getClients()
           
 DefaultServiceServer<?,?> getServer(GraphName name)
           
 java.util.List<DefaultServiceServer<?,?>> getServers()
           
 boolean hasClient(GraphName name)
           
 boolean hasServer(GraphName name)
           
 void removeClient(DefaultServiceClient<?,?> serviceClient)
           
 void removeServer(DefaultServiceServer<?,?> serviceServer)
           
 void setListener(ServiceManagerListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceManager

public ServiceManager()
Method Detail

setListener

public void setListener(ServiceManagerListener listener)

hasServer

public boolean hasServer(GraphName name)

addServer

public void addServer(DefaultServiceServer<?,?> serviceServer)

removeServer

public void removeServer(DefaultServiceServer<?,?> serviceServer)

getServer

public DefaultServiceServer<?,?> getServer(GraphName name)

hasClient

public boolean hasClient(GraphName name)

addClient

public void addClient(DefaultServiceClient<?,?> serviceClient)

removeClient

public void removeClient(DefaultServiceClient<?,?> serviceClient)

getClient

public DefaultServiceClient<?,?> getClient(GraphName name)

getServers

public java.util.List<DefaultServiceServer<?,?>> getServers()

getClients

public java.util.List<DefaultServiceClient<?,?>> getClients()