Ice 3.7 C++98 API Reference
|
Facilitates the creation of new Glacier2 sessions. More...
#include <Glacier2/Glacier2.h>
Public Member Functions | |
SessionHelperPtr | connect () |
Initializes a communicator, creates a Glacier2 session using SSL credentials, and returns a new SessionHelper object. More... | |
SessionHelperPtr | connect (const std::string &username, const std::string &password) |
Initializes a communicator, creates a Glacier2 session using the given username and password, and returns a new SessionHelper object. More... | |
void | destroy () |
Blocks until all background threads are terminated. More... | |
Ice::InitializationData | getInitializationData () const |
Returns a copy of the InitializationData object that will be used during communicator initialization. More... | |
int | getPort () const |
Obtains the port on which the Glacier2 router is listening. More... | |
std::string | getProtocol () const |
Obtains the Ice protocol used for communications with the Glacier2 router. More... | |
std::string | getRouterHost () const |
Obtains the host name of the Glacier2 router. More... | |
Ice::Identity | getRouterIdentity () const |
Obtains the object identity of the Glacier2 router. More... | |
int | getTimeout () const |
Obtains the timeout in milliseconds for the connection to the Glacier2 router. More... | |
bool | getUseCallbacks () const |
Determines whether the session helper automatically creates an object adapter for callback servants. More... | |
SessionFactoryHelper (const Ice::InitializationData &initData, const SessionCallbackPtr &callback) | |
Use this constructor when you want to provide your own instance of InitializationData. More... | |
SessionFactoryHelper (const Ice::PropertiesPtr &properties, const SessionCallbackPtr &callback) | |
This constructor is convenient when you want to supply an initial set of properties. More... | |
SessionFactoryHelper (const SessionCallbackPtr &callback) | |
This constructor is useful when your application has no other configuration requirements. More... | |
void | setConnectContext (const std::map< std::string, std::string > &context) |
Sets the request context to be used when creating a session. More... | |
void | setPort (int port) |
Sets the port on which the Glacier2 router is listening. More... | |
void | setProtocol (const std::string &protocol) |
Sets the Ice protocol used for communications with the Glacier2 router. More... | |
void | setRouterHost (const std::string &host) |
Sets the host name of the Glacier2 router. More... | |
void | setRouterIdentity (const Ice::Identity &identity) |
Sets the object identity of the Glacier2 router. More... | |
void | setTimeout (int timeout) |
Sets the timeout in milliseconds for the connection to the Glacier2 router. More... | |
void | setUseCallbacks (bool b) |
Determines whether the session helper automatically creates an object adapter for callback servants. More... | |
~SessionFactoryHelper () | |
![]() | |
void | __clearFlag (unsigned char flag) |
virtual void | __decRef () |
virtual int | __getRef () const |
bool | __hasFlag (unsigned char flag) |
virtual void | __incRef () |
void | __setFlag (unsigned char flag) |
virtual void | __setNoDelete (bool) |
Shared & | operator= (const Shared &) |
Shared () | |
Shared (const Shared &) | |
virtual | ~Shared () |
Additional Inherited Members | |
![]() | |
static const unsigned char | NoDelete |
![]() | |
unsigned char | _flags |
IceUtilInternal::Atomic | _ref |
Facilitates the creation of new Glacier2 sessions.
Glacier2::SessionFactoryHelper::SessionFactoryHelper | ( | const SessionCallbackPtr & | callback | ) |
This constructor is useful when your application has no other configuration requirements.
The constructor allocates an InitializationData object and a new property set.
callback | The callback object (must not be nil). |
Glacier2::SessionFactoryHelper::SessionFactoryHelper | ( | const Ice::InitializationData & | initData, |
const SessionCallbackPtr & | callback | ||
) |
Use this constructor when you want to provide your own instance of InitializationData.
initData | Initialization data for the communicator. |
callback | The callback object (must not be nil). |
Glacier2::SessionFactoryHelper::SessionFactoryHelper | ( | const Ice::PropertiesPtr & | properties, |
const SessionCallbackPtr & | callback | ||
) |
This constructor is convenient when you want to supply an initial set of properties.
properties | Configuration properties for the communicator. |
callback | The callback object (must not be nil). |
Glacier2::SessionFactoryHelper::~SessionFactoryHelper | ( | ) |
SessionHelperPtr Glacier2::SessionFactoryHelper::connect | ( | ) |
Initializes a communicator, creates a Glacier2 session using SSL credentials, and returns a new SessionHelper object.
SessionHelperPtr Glacier2::SessionFactoryHelper::connect | ( | const std::string & | username, |
const std::string & | password | ||
) |
Initializes a communicator, creates a Glacier2 session using the given username and password, and returns a new SessionHelper object.
void Glacier2::SessionFactoryHelper::destroy | ( | ) |
Blocks until all background threads are terminated.
Ice::InitializationData Glacier2::SessionFactoryHelper::getInitializationData | ( | ) | const |
Returns a copy of the InitializationData object that will be used during communicator initialization.
int Glacier2::SessionFactoryHelper::getPort | ( | ) | const |
Obtains the port on which the Glacier2 router is listening.
std::string Glacier2::SessionFactoryHelper::getProtocol | ( | ) | const |
std::string Glacier2::SessionFactoryHelper::getRouterHost | ( | ) | const |
Obtains the host name of the Glacier2 router.
Ice::Identity Glacier2::SessionFactoryHelper::getRouterIdentity | ( | ) | const |
Obtains the object identity of the Glacier2 router.
int Glacier2::SessionFactoryHelper::getTimeout | ( | ) | const |
Obtains the timeout in milliseconds for the connection to the Glacier2 router.
bool Glacier2::SessionFactoryHelper::getUseCallbacks | ( | ) | const |
Determines whether the session helper automatically creates an object adapter for callback servants.
void Glacier2::SessionFactoryHelper::setConnectContext | ( | const std::map< std::string, std::string > & | context | ) |
Sets the request context to be used when creating a session.
context | The request context. |
void Glacier2::SessionFactoryHelper::setPort | ( | int | port | ) |
Sets the port on which the Glacier2 router is listening.
port | The router port. |
void Glacier2::SessionFactoryHelper::setProtocol | ( | const std::string & | protocol | ) |
void Glacier2::SessionFactoryHelper::setRouterHost | ( | const std::string & | host | ) |
Sets the host name of the Glacier2 router.
host | The router host name. |
void Glacier2::SessionFactoryHelper::setRouterIdentity | ( | const Ice::Identity & | identity | ) |
Sets the object identity of the Glacier2 router.
identity | The router identity. |
void Glacier2::SessionFactoryHelper::setTimeout | ( | int | timeout | ) |
Sets the timeout in milliseconds for the connection to the Glacier2 router.
timeout | The timeout in milliseconds. |
void Glacier2::SessionFactoryHelper::setUseCallbacks | ( | bool | b | ) |
Determines whether the session helper automatically creates an object adapter for callback servants.
b | True if the helper should create an object adapter, false otherwise. |