A proxy for calling services.
Definition at line 11 of file proxy_service_caller.py.
def flexbe_core.proxy.proxy_service_caller.ProxyServiceCaller.__init__ |
( |
|
self, |
|
|
|
topics = {} |
|
) |
| |
Initializes the proxy with optionally a given set of clients.
@type topics: dictionary string - message class
@param topics: A dictionay containing a collection of topic - message type pairs.
Definition at line 17 of file proxy_service_caller.py.
def flexbe_core.proxy.proxy_service_caller.ProxyServiceCaller._print_wait_warning |
( |
|
self, |
|
|
|
topic |
|
) |
| |
|
private |
def flexbe_core.proxy.proxy_service_caller.ProxyServiceCaller.call |
( |
|
self, |
|
|
|
topic, |
|
|
|
request |
|
) |
| |
Performs a service call on the given topic.
@type topic: string
@param topic: The topic to call.
@type request: service
@param request: The request to send to this service.
Definition at line 80 of file proxy_service_caller.py.
def flexbe_core.proxy.proxy_service_caller.ProxyServiceCaller.is_available |
( |
|
self, |
|
|
|
topic |
|
) |
| |
Checks if the service on the given topic is available.
@type topic: string
@param topic: The topic of interest.
Definition at line 70 of file proxy_service_caller.py.
def flexbe_core.proxy.proxy_service_caller.ProxyServiceCaller.setupService |
( |
|
self, |
|
|
|
topic, |
|
|
|
msg_type, |
|
|
|
persistent = False , |
|
|
|
wait_duration = 10 |
|
) |
| |
Tries to set up a service caller for calling it later.
@type topic: string
@param topic: The topic of the service to call.
@type msg_type: service class
@param msg_type: The type of messages of this service.
@type persistent: bool
@param persistent: Defines if this service caller is persistent.
@type wait_duration: int
@param wait_duration: Defines how long to wait for the given service if it is not available right now.
Definition at line 29 of file proxy_service_caller.py.
dictionary flexbe_core.proxy.proxy_service_caller.ProxyServiceCaller._services = {} |
|
staticprivate |
The documentation for this class was generated from the following file: