Public Member Functions | Private Member Functions | Static Private Attributes
flexbe_core.proxy.proxy_service_caller.ProxyServiceCaller Class Reference

List of all members.

Public Member Functions

def __init__
def call
def is_available
def setupService

Private Member Functions

def _print_wait_warning

Static Private Attributes

dictionary _services = {}

Detailed Description

A proxy for calling services.

Definition at line 11 of file proxy_service_caller.py.


Constructor & Destructor Documentation

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.


Member Function Documentation

Definition at line 101 of file proxy_service_caller.py.

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.

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.


Member Data Documentation

Definition at line 15 of file proxy_service_caller.py.


The documentation for this class was generated from the following file:


flexbe_core
Author(s): Philipp Schillinger
autogenerated on Thu Jun 6 2019 19:32:27