Ice 3.7 C++11 API Reference
|
The Glacier2 specialization of the Ice::Router
interface.
More...
#include <Glacier2/Glacier2.h>
Public Member Functions | |
::std::shared_ptr< SessionPrx > | createSession (const ::std::string &userId, const ::std::string &password, const ::Ice::Context &context=::Ice::noExplicitContext) |
Create a per-client session with the router. More... | |
::std::function< void()> | createSessionAsync (const ::std::string &userId, const ::std::string &password, ::std::function< void(::std::shared_ptr<::Glacier2::SessionPrx >)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext) |
Create a per-client session with the router. More... | |
template<template< typename > class P = ::std::promise> | |
auto | createSessionAsync (const ::std::string &userId, const ::std::string &password, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P<::std::shared_ptr<::Glacier2::SessionPrx >>>().get_future()) |
Create a per-client session with the router. More... | |
::std::shared_ptr< SessionPrx > | createSessionFromSecureConnection (const ::Ice::Context &context=::Ice::noExplicitContext) |
Create a per-client session with the router. More... | |
::std::function< void()> | createSessionFromSecureConnectionAsync (::std::function< void(::std::shared_ptr<::Glacier2::SessionPrx >)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext) |
Create a per-client session with the router. More... | |
template<template< typename > class P = ::std::promise> | |
auto | createSessionFromSecureConnectionAsync (const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P<::std::shared_ptr<::Glacier2::SessionPrx >>>().get_future()) |
Create a per-client session with the router. More... | |
void | destroySession (const ::Ice::Context &context=::Ice::noExplicitContext) |
Destroy the calling client's session with this router. More... | |
::std::function< void()> | destroySessionAsync (::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext) |
Destroy the calling client's session with this router. More... | |
template<template< typename > class P = ::std::promise> | |
auto | destroySessionAsync (const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void >>().get_future()) |
Destroy the calling client's session with this router. More... | |
int | getACMTimeout (const ::Ice::Context &context=::Ice::noExplicitContext) |
Get the value of the ACM timeout. More... | |
::std::function< void()> | getACMTimeoutAsync (::std::function< void(int)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext) |
Get the value of the ACM timeout. More... | |
template<template< typename > class P = ::std::promise> | |
auto | getACMTimeoutAsync (const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< int >>().get_future()) |
Get the value of the ACM timeout. More... | |
::std::string | getCategoryForClient (const ::Ice::Context &context=::Ice::noExplicitContext) |
This category must be used in the identities of all of the client's callback objects. More... | |
::std::function< void()> | getCategoryForClientAsync (::std::function< void(::std::string)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext) |
This category must be used in the identities of all of the client's callback objects. More... | |
template<template< typename > class P = ::std::promise> | |
auto | getCategoryForClientAsync (const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P<::std::string >>().get_future()) |
This category must be used in the identities of all of the client's callback objects. More... | |
long long int | getSessionTimeout (const ::Ice::Context &context=::Ice::noExplicitContext) |
Get the value of the session timeout. More... | |
::std::function< void()> | getSessionTimeoutAsync (::std::function< void(long long int)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext) |
Get the value of the session timeout. More... | |
template<template< typename > class P = ::std::promise> | |
auto | getSessionTimeoutAsync (const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< long long int >>().get_future()) |
Get the value of the session timeout. More... | |
void | refreshSession (const ::Ice::Context &context=::Ice::noExplicitContext) |
Keep the calling client's session with this router alive. More... | |
::std::function< void()> | refreshSessionAsync (::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext) |
Keep the calling client's session with this router alive. More... | |
template<template< typename > class P = ::std::promise> | |
auto | refreshSessionAsync (const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void >>().get_future()) |
Keep the calling client's session with this router alive. More... | |
Public Member Functions inherited from Ice::Proxy< RouterPrx, ::Ice::RouterPrx > | |
::std::shared_ptr< RouterPrx > | ice_adapterId (const ::std::string &id) const |
Obtains a proxy that is identical to this proxy, except for the adapter ID. More... | |
::std::shared_ptr< RouterPrx > | ice_batchDatagram () const |
Obtains a proxy that is identical to this proxy, but uses batch datagram invocations. More... | |
::std::shared_ptr< RouterPrx > | ice_batchOneway () const |
Obtains a proxy that is identical to this proxy, but uses batch oneway invocations. More... | |
::std::shared_ptr< RouterPrx > | ice_collocationOptimized (bool b) const |
Obtains a proxy that is identical to this proxy, except for collocation optimization. More... | |
::std::shared_ptr< RouterPrx > | ice_compress (bool b) const |
Obtains a proxy that is identical to this proxy, except for its compression setting which overrides the compression setting from the proxy endpoints. More... | |
::std::shared_ptr< RouterPrx > | ice_connectionCached (bool b) const |
Obtains a proxy that is identical to this proxy, except for connection caching. More... | |
::std::shared_ptr< RouterPrx > | ice_connectionId (const ::std::string &id) const |
Obtains a proxy that is identical to this proxy, except for its connection ID. More... | |
::std::shared_ptr< RouterPrx > | ice_context (const ::Ice::Context &context) const |
Obtains a proxy that is identical to this proxy, except for the per-proxy context. More... | |
::std::shared_ptr< RouterPrx > | ice_datagram () const |
Obtains a proxy that is identical to this proxy, but uses datagram invocations. More... | |
::std::shared_ptr< RouterPrx > | ice_encodingVersion (const ::Ice::EncodingVersion &version) const |
Obtains a proxy that is identical to this proxy, except for the encoding used to marshal parameters. More... | |
::std::shared_ptr< RouterPrx > | ice_endpoints (const ::Ice::EndpointSeq &endpoints) const |
Obtains a proxy that is identical to this proxy, except for the endpoints. More... | |
::std::shared_ptr< RouterPrx > | ice_endpointSelection (::Ice::EndpointSelectionType type) const |
Obtains a proxy that is identical to this proxy, except for the endpoint selection policy. More... | |
::std::shared_ptr< RouterPrx > | ice_fixed (const ::std::shared_ptr<::Ice::Connection > &connection) const |
Obtains a proxy that is identical to this proxy, except it's a fixed proxy bound the given connection. More... | |
::std::shared_ptr< RouterPrx > | ice_invocationTimeout (int timeout) const |
Obtains a proxy that is identical to this proxy, except for the invocation timeout. More... | |
::std::shared_ptr< RouterPrx > | ice_locator (const ::std::shared_ptr<::Ice::LocatorPrx > &locator) const |
Obtains a proxy that is identical to this proxy, except for the locator. More... | |
::std::shared_ptr< RouterPrx > | ice_locatorCacheTimeout (int timeout) const |
Obtains a proxy that is identical to this proxy, except for the locator cache timeout. More... | |
::std::shared_ptr< RouterPrx > | ice_oneway () const |
Obtains a proxy that is identical to this proxy, but uses oneway invocations. More... | |
::std::shared_ptr< RouterPrx > | ice_preferSecure (bool b) const |
Obtains a proxy that is identical to this proxy, except for its endpoint selection policy. More... | |
::std::shared_ptr< RouterPrx > | ice_router (const ::std::shared_ptr<::Ice::RouterPrx > &router) const |
Obtains a proxy that is identical to this proxy, except for the router. More... | |
::std::shared_ptr< RouterPrx > | ice_secure (bool b) const |
Obtains a proxy that is identical to this proxy, except for how it selects endpoints. More... | |
::std::shared_ptr< RouterPrx > | ice_timeout (int timeout) const |
Obtains a proxy that is identical to this proxy, except for its connection timeout setting which overrides the timeot setting from the proxy endpoints. More... | |
::std::shared_ptr< RouterPrx > | ice_twoway () const |
Obtains a proxy that is identical to this proxy, but uses twoway invocations. More... | |
Static Public Member Functions | |
static const ::std::string & | ice_staticId () |
Obtains the Slice type ID of this interface. More... | |
The Glacier2 specialization of the Ice::Router
interface.
|
inline |
Create a per-client session with the router.
If a SessionManager has been installed, a proxy to a Session object is returned to the client. Otherwise, null is returned and only an internal session (i.e., not visible to the client) is created.
If a session proxy is returned, it must be configured to route through the router that created it. This will happen automatically if the router is configured as the client's default router at the time the session proxy is created in the client process, otherwise the client must configure the session proxy explicitly.
userId | The user id for which to check the password. |
password | The password for the given user id. |
context | The Context map to send with the invocation. |
Glacier2::CannotCreateSessionException | Raised if the session cannot be created. |
Glacier2::PermissionDeniedException | Raised if the password for the given user id is not correct, or if the user is not allowed access. |
|
inline |
Create a per-client session with the router.
If a SessionManager has been installed, a proxy to a Session object is returned to the client. Otherwise, null is returned and only an internal session (i.e., not visible to the client) is created.
If a session proxy is returned, it must be configured to route through the router that created it. This will happen automatically if the router is configured as the client's default router at the time the session proxy is created in the client process, otherwise the client must configure the session proxy explicitly.
userId | The user id for which to check the password. |
password | The password for the given user id. |
response | The response callback. |
ex | The exception callback. |
sent | The sent callback. |
context | The Context map to send with the invocation. |
|
inline |
Create a per-client session with the router.
If a SessionManager has been installed, a proxy to a Session object is returned to the client. Otherwise, null is returned and only an internal session (i.e., not visible to the client) is created.
If a session proxy is returned, it must be configured to route through the router that created it. This will happen automatically if the router is configured as the client's default router at the time the session proxy is created in the client process, otherwise the client must configure the session proxy explicitly.
userId | The user id for which to check the password. |
password | The password for the given user id. |
context | The Context map to send with the invocation. |
|
inline |
Create a per-client session with the router.
The user is authenticated through the SSL certificates that have been associated with the connection. If a SessionManager has been installed, a proxy to a Session object is returned to the client. Otherwise, null is returned and only an internal session (i.e., not visible to the client) is created.
If a session proxy is returned, it must be configured to route through the router that created it. This will happen automatically if the router is configured as the client's default router at the time the session proxy is created in the client process, otherwise the client must configure the session proxy explicitly.
context | The Context map to send with the invocation. |
Glacier2::CannotCreateSessionException | Raised if the session cannot be created. |
Glacier2::PermissionDeniedException | Raised if the user cannot be authenticated or if the user is not allowed access. |
|
inline |
Create a per-client session with the router.
The user is authenticated through the SSL certificates that have been associated with the connection. If a SessionManager has been installed, a proxy to a Session object is returned to the client. Otherwise, null is returned and only an internal session (i.e., not visible to the client) is created.
If a session proxy is returned, it must be configured to route through the router that created it. This will happen automatically if the router is configured as the client's default router at the time the session proxy is created in the client process, otherwise the client must configure the session proxy explicitly.
response | The response callback. |
ex | The exception callback. |
sent | The sent callback. |
context | The Context map to send with the invocation. |
|
inline |
Create a per-client session with the router.
The user is authenticated through the SSL certificates that have been associated with the connection. If a SessionManager has been installed, a proxy to a Session object is returned to the client. Otherwise, null is returned and only an internal session (i.e., not visible to the client) is created.
If a session proxy is returned, it must be configured to route through the router that created it. This will happen automatically if the router is configured as the client's default router at the time the session proxy is created in the client process, otherwise the client must configure the session proxy explicitly.
context | The Context map to send with the invocation. |
|
inline |
Destroy the calling client's session with this router.
context | The Context map to send with the invocation. |
Glacier2::SessionNotExistException | Raised if no session exists for the calling client. |
|
inline |
Destroy the calling client's session with this router.
response | The response callback. |
ex | The exception callback. |
sent | The sent callback. |
context | The Context map to send with the invocation. |
|
inline |
Destroy the calling client's session with this router.
context | The Context map to send with the invocation. |
|
inline |
Get the value of the ACM timeout.
Clients supporting connection heartbeats can enable them instead of explicitly sending keep alives requests.
NOTE: This method is only available since Ice 3.6.
context | The Context map to send with the invocation. |
|
inline |
Get the value of the ACM timeout.
Clients supporting connection heartbeats can enable them instead of explicitly sending keep alives requests.
NOTE: This method is only available since Ice 3.6.
response | The response callback. |
ex | The exception callback. |
sent | The sent callback. |
context | The Context map to send with the invocation. |
|
inline |
Get the value of the ACM timeout.
Clients supporting connection heartbeats can enable them instead of explicitly sending keep alives requests.
NOTE: This method is only available since Ice 3.6.
context | The Context map to send with the invocation. |
|
inline |
This category must be used in the identities of all of the client's callback objects.
This is necessary in order for the router to forward callback requests to the intended client. If the Glacier2 server endpoints are not set, the returned category is an empty string.
context | The Context map to send with the invocation. |
|
inline |
This category must be used in the identities of all of the client's callback objects.
This is necessary in order for the router to forward callback requests to the intended client. If the Glacier2 server endpoints are not set, the returned category is an empty string.
response | The response callback. |
ex | The exception callback. |
sent | The sent callback. |
context | The Context map to send with the invocation. |
|
inline |
This category must be used in the identities of all of the client's callback objects.
This is necessary in order for the router to forward callback requests to the intended client. If the Glacier2 server endpoints are not set, the returned category is an empty string.
context | The Context map to send with the invocation. |
|
inline |
Get the value of the session timeout.
Sessions are destroyed if they see no activity for this period of time.
context | The Context map to send with the invocation. |
|
inline |
Get the value of the session timeout.
Sessions are destroyed if they see no activity for this period of time.
response | The response callback. |
ex | The exception callback. |
sent | The sent callback. |
context | The Context map to send with the invocation. |
|
inline |
Get the value of the session timeout.
Sessions are destroyed if they see no activity for this period of time.
context | The Context map to send with the invocation. |
|
static |
Obtains the Slice type ID of this interface.
|
inline |
Keep the calling client's session with this router alive.
context | The Context map to send with the invocation. |
Glacier2::SessionNotExistException | Raised if no session exists for the calling client. |
|
inline |
Keep the calling client's session with this router alive.
response | The response callback. |
ex | The exception callback. |
sent | The sent callback. |
context | The Context map to send with the invocation. |
|
inline |
Keep the calling client's session with this router alive.
context | The Context map to send with the invocation. |