ERC CISST - cisst software

mtsManagerProxyClient Class Reference

Inheritance diagram for mtsManagerProxyClient:

Inheritance graph
[legend]
Collaboration diagram for mtsManagerProxyClient:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 32 of file mtsManagerProxyClient.h.

Public Member Functions

Protected Types

Protected Member Functions

Static Protected Member Functions

Protected Attributes

Static Protected Attributes

Classes


Constructor & Destructor Documentation

mtsManagerProxyClient::mtsManagerProxyClient ( const std::string &  serverEndpointInfo  ) 

Constructor and destructor


Member Function Documentation

void mtsManagerProxyClient::CreateProxy (  )  [inline, protected, virtual]

Create a proxy object and a send thread.

Implements mtsProxyBaseClient< mtsManagerLocal >.

Definition at line 58 of file mtsManagerProxyClient.h.

void mtsManagerProxyClient::RemoveProxy (  )  [inline, protected, virtual]

Create a proxy object and a send thread.

Implements mtsProxyBaseClient< mtsManagerLocal >.

Definition at line 69 of file mtsManagerProxyClient.h.

void mtsManagerProxyClient::StartClient (  )  [protected]

Start a send thread and wait for shutdown (blocking call).

bool mtsManagerProxyClient::OnServerDisconnect (  )  [protected, virtual]

Called when server disconnection is detected

Implements mtsProxyBaseClient< mtsManagerLocal >.

static void mtsManagerProxyClient::Runner ( ThreadArguments< mtsManagerLocal > *  arguments  )  [static, protected]

Thread runner

void mtsManagerProxyClient::GetConnectionStringSet ( mtsManagerProxy::ConnectionStringSet &  connectionStringSet,
const std::string &  clientProcessName,
const std::string &  clientComponentName,
const std::string &  clientInterfaceRequiredName,
const std::string &  serverProcessName,
const std::string &  serverComponentName,
const std::string &  serverInterfaceProvidedName,
const std::string &  requestProcessName = "" 
) [protected]

Miscellaneous methods

bool mtsManagerProxyClient::Start ( mtsManagerLocal proxyOwner  )  [virtual]

Entry point to run a proxy.

Implements mtsProxyBaseClient< mtsManagerLocal >.

void mtsManagerProxyClient::Stop ( void   )  [virtual]

Stop the proxy (clean up thread-related resources)

Reimplemented from mtsProxyBaseClient< mtsManagerLocal >.

bool mtsManagerProxyClient::AddProcess ( const std::string &  processName  )  [virtual]

Register process.

Parameters:
processName Name of process

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::FindProcess ( const std::string &  processName  )  const [virtual]

Find process.

Parameters:
processName Name of process

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::RemoveProcess ( const std::string &  processName  )  [virtual]

Remove process.

Parameters:
processName Name of process

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::AddComponent ( const std::string &  processName,
const std::string &  componentName 
) [virtual]

Register component.

Parameters:
processName Name of process
componentName Name of component

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::FindComponent ( const std::string &  processName,
const std::string &  componentName 
) const [virtual]

Find component using process name and component name.

Parameters:
processName Name of process
componentName Name of component

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::RemoveComponent ( const std::string &  processName,
const std::string &  componentName 
) [virtual]

Remove component.

Parameters:
processName Name of process
componentName Name of component

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::AddInterfaceProvidedOrOutput ( const std::string &  processName,
const std::string &  componentName,
const std::string &  interfaceName,
const bool  isProxyInterface 
) [virtual]

Register provided interface. Can be called at run-time.

Parameters:
processName Name of process
componentName Name of component
interfaceName Name of provided interface to be added
isProxyInterface True if interface added is a proxy interface

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::AddInterfaceRequiredOrInput ( const std::string &  processName,
const std::string &  componentName,
const std::string &  interfaceName,
const bool  isProxyInterface 
) [virtual]

Register required interface. Can be called at run-time.

Parameters:
processName Name of process
componentName Name of component
interfaceName Name of required interface to be added
isProxyInterface True if interface added is a proxy interface

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::FindInterfaceProvidedOrOutput ( const std::string &  processName,
const std::string &  componentName,
const std::string &  interfaceName 
) const [virtual]

Find provided interface using process name, component name, and interface name.

Parameters:
processName Name of process
componentName Name of component
interfaceName Name of provided interface

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::FindInterfaceRequiredOrInput ( const std::string &  processName,
const std::string &  componentName,
const std::string &  interfaceName 
) const [virtual]

Find required interface using process name, component name, and interface name.

Parameters:
processName Name of process
componentName Name of component
interfaceName Name of required interface

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::RemoveInterfaceProvidedOrOutput ( const std::string &  processName,
const std::string &  componentName,
const std::string &  interfaceName 
) [virtual]

Remove provided interface. Can be called at run-time.

Parameters:
processName Name of process
componentName Name of component
interfaceName Name of provided interface to be removed

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::RemoveInterfaceRequiredOrInput ( const std::string &  processName,
const std::string &  componentName,
const std::string &  interfaceName 
) [virtual]

Remove required interface. Can be called at run-time.

Parameters:
processName Name of process
componentName Name of component
interfaceName Name of required interface to be removed

Implements mtsManagerGlobalInterface.

int mtsManagerProxyClient::Connect ( const std::string &  requestProcessName,
const std::string &  clientProcessName,
const std::string &  clientComponentName,
const std::string &  clientInterfaceRequiredName,
const std::string &  serverProcessName,
const std::string &  serverComponentName,
const std::string &  serverInterfaceProvidedName 
) [virtual]

Connect two interfaces.

Parameters:
requestProcessName Name of process that requests this connection
clientProcessName Name of client process
clientComponentName Name of client component
clientInterfaceRequiredName Name of client's required interface
serverProcessName Name of server process
serverComponentName Name of server component
serverInterfaceProvidedName Name of server's provided interface
Returns:
Connect session id issued by the global component manager. Session id is used to clean up pending connections (which was requested but not yet established) after timeout. -1 if error occurs, zero or positive value if success

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::ConnectConfirm ( unsigned int  connectionSessionID  )  [virtual]

Confirm that connection has been successfully established.

Parameters:
connectionSessionID Connection id
Returns:
False if connection id is invalid, true otherwise

Implements mtsManagerGlobalInterface.

bool mtsManagerProxyClient::Disconnect ( const std::string &  clientProcessName,
const std::string &  clientComponentName,
const std::string &  clientInterfaceRequiredName,
const std::string &  serverProcessName,
const std::string &  serverComponentName,
const std::string &  serverInterfaceProvidedName 
) [virtual]

Disconnect two interfaces.

Parameters:
clientProcessName Name of client process
clientComponentName Name of client component
clientInterfaceRequiredName Name of required interface
serverProcessName Name of server process
serverComponentName Name of server component
serverInterfaceProvidedName Name of provided interface
Returns:
True if success, false otherwise

Implements mtsManagerGlobalInterface.

void mtsManagerProxyClient::GetListOfConnections ( std::vector< mtsDescriptionConnection > &  list  )  const [virtual]

Get a list of all active connections represented by a set of strings

Implements mtsManagerGlobalInterface.


Member Data Documentation

unsigned int mtsManagerProxyClient::InstanceCounter [static, protected]

Instance counter used to set a short name of this thread

Definition at line 52 of file mtsManagerProxyClient.h.


The documentation for this class was generated from the following file:
erc-cisst-devel<at>lists.johnshopkins.edu