ERC CISST - cisst software

mtsManagerProxyServer Class Reference

Inheritance diagram for mtsManagerProxyServer:

Inheritance graph
[legend]
Collaboration diagram for mtsManagerProxyServer:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 32 of file mtsManagerProxyServer.h.

Public Member Functions

Static Public Member Functions

Protected Types

Protected Member Functions

Static Protected Member Functions

Protected Attributes

Static Protected Attributes

Friends

Classes


Constructor & Destructor Documentation

mtsManagerProxyServer::mtsManagerProxyServer ( const std::string &  adapterName,
const std::string &  communicatorID 
)

Constructor and destructor


Member Function Documentation

Ice::ObjectPtr mtsManagerProxyServer::CreateServant (  )  [inline, protected, virtual]

Create a servant

Implements mtsProxyBaseServer< mtsManagerGlobal, mtsManagerProxy::ManagerClientPrx, std::string >.

Definition at line 66 of file mtsManagerProxyServer.h.

void mtsManagerProxyServer::StartServer (  )  [protected]

Start a send thread and wait for shutdown (this is a blocking method).

static void mtsManagerProxyServer::Runner ( ThreadArguments< mtsManagerGlobal > *  arguments  )  [static, protected]

Thread runner

ManagerClientProxyType* mtsManagerProxyServer::GetNetworkProxyClient ( const ClientIDType  clientID  )  [protected]

Get a network proxy client using clientID. If no network proxy client with the clientID found or inactive proxy, this method returns NULL.

void mtsManagerProxyServer::MonitorConnections (  )  [inline, protected]

Monitor all the current connections

Definition at line 82 of file mtsManagerProxyServer.h.

void mtsManagerProxyServer::ConnectCheckTimeout (  )  [protected]

Check connection timeout

bool mtsManagerProxyServer::OnClientDisconnect ( const ClientIDType  clientID  )  [protected]

Event handler for client's disconnect event

void mtsManagerProxyServer::ReceiveTestMessageFromClientToServer ( const ConnectionIDType connectionID,
const std::string &  str 
) [protected]

Test method

bool mtsManagerProxyServer::ReceiveAddClient ( const ConnectionIDType connectionID,
const std::string &  connectingProxyName,
ManagerClientProxyType &  clientProxy 
) [protected]

When a new client connects, add it to the client management list.

void mtsManagerProxyServer::ReceiveShutdown ( const ::Ice::Current &   )  [protected]

Shutdown this session; prepare shutdown for safe and clean termination.

bool mtsManagerProxyServer::ReceiveAddProcess ( const std::string &  processName  )  [protected]

Process Management

bool mtsManagerProxyServer::ReceiveAddComponent ( const std::string &  processName,
const std::string &  componentName 
) [protected]

Component Management

::Ice::Int mtsManagerProxyServer::ReceiveConnect ( const ::mtsManagerProxy::ConnectionStringSet &  connectionStringSet  )  [protected]

Connection Management

bool mtsManagerProxyServer::ReceiveSetInterfaceProvidedProxyAccessInfo ( const ::mtsManagerProxy::ConnectionStringSet &  connectionStringSet,
const std::string &  endpointInfo 
) [protected]

Networking

bool mtsManagerProxyServer::Start ( mtsManagerGlobal owner  )  [virtual]

Entry point to run a proxy

Implements mtsProxyBaseServer< mtsManagerGlobal, mtsManagerProxy::ManagerClientPrx, std::string >.

void mtsManagerProxyServer::Stop (  )  [virtual]

Stop the proxy (clean up thread-related resources)

Reimplemented from mtsProxyBaseServer< mtsManagerGlobal, mtsManagerProxy::ManagerClientPrx, std::string >.

void mtsManagerProxyServer::ConstructConnectionStringSet ( const std::string &  clientProcessName,
const std::string &  clientComponentName,
const std::string &  clientInterfaceRequiredName,
const std::string &  serverProcessName,
const std::string &  serverComponentName,
const std::string &  serverInterfaceProvidedName,
::mtsManagerProxy::ConnectionStringSet &  connectionStringSet 
)

Construct mtsManagerProxy::ConnectionStringSet structure

static void mtsManagerProxyServer::ConvertInterfaceProvidedDescription ( const ::mtsManagerProxy::InterfaceProvidedDescription &  src,
InterfaceProvidedDescription dest 
) [static]

Data structure converters

const std::string mtsManagerProxyServer::GetProcessName ( const std::string &  listenerID = ""  )  const [virtual]

Returns a name of this local component manager

Implements mtsManagerLocalInterface.

void mtsManagerProxyServer::SendTestMessageFromServerToClient ( const std::string &  str  ) 

Test method: broadcast string to all clients connected

bool mtsManagerProxyServer::SendCreateComponentProxy ( const std::string &  componentProxyName,
const std::string &  clientID 
)

Proxy object control (creation and removal)

bool mtsManagerProxyServer::SendConnectServerSideInterface ( const unsigned int  connectionID,
const ::mtsManagerProxy::ConnectionStringSet &  connectionStrings,
const std::string &  clientID 
)

Connection management

bool mtsManagerProxyServer::SendGetInterfaceProvidedDescription ( const std::string &  serverComponentName,
const std::string &  providedInterfaceName,
::mtsManagerProxy::InterfaceProvidedDescription &  providedInterfaceDescription,
const std::string &  clientID 
)

Getters

static std::string mtsManagerProxyServer::GetConnectionIDKey (  )  [inline, static]

Returns connection id key

Definition at line 393 of file mtsManagerProxyServer.h.

References ConnectionIDKey.

static std::string mtsManagerProxyServer::GetManagerCommunicatorID (  )  [inline, static]

Returns communicator (proxy) ID

Definition at line 398 of file mtsManagerProxyServer.h.

References ManagerCommunicatorID.

static std::string mtsManagerProxyServer::GetConfigFullName ( const std::string &  propertyFileName  )  [static]

Returns full path name for config file

static std::string mtsManagerProxyServer::GetGCMPortNumberAsString (  )  [static]

Returns the port number that the global component manager uses

static int mtsManagerProxyServer::GetGCMConnectTimeout (  )  [static]

Returns connection timeout value (msec) from GCM's configuration file


Member Data Documentation

unsigned int mtsManagerProxyServer::InstanceCounter [static, protected]

Instance counter used to set a short name of this thread

Definition at line 53 of file mtsManagerProxyServer.h.

std::string mtsManagerProxyServer::ConnectionIDKey [static, protected]

String key to set an implicit per-proxy context for connection id

Definition at line 56 of file mtsManagerProxyServer.h.

Referenced by GetConnectionIDKey().

std::string mtsManagerProxyServer::ManagerCommunicatorID [static, protected]

Communicator (proxy) ID to initialize mtsManagerProxyServer. A manager proxy client uses this ID to connect to proxy server.

Definition at line 60 of file mtsManagerProxyServer.h.

Referenced by GetManagerCommunicatorID().


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