Ice 3.7 C++11 API Reference
Public Member Functions | Static Public Member Functions | List of all members
IceGrid::ApplicationObserverPrx Class Reference

The database observer interface. More...

#include <IceGrid/IceGrid.h>

Inheritance diagram for IceGrid::ApplicationObserverPrx:
Inheritance graph
[legend]
Collaboration diagram for IceGrid::ApplicationObserverPrx:
Collaboration graph
[legend]

Public Member Functions

void applicationAdded (int serial, const ApplicationInfo &desc, const ::Ice::Context &context=::Ice::noExplicitContext)
 The applicationAdded operation is called to notify an observer that an application was added. More...
 
::std::function< void()> applicationAddedAsync (int serial, const ApplicationInfo &desc, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
 The applicationAdded operation is called to notify an observer that an application was added. More...
 
template<template< typename > class P = ::std::promise>
auto applicationAddedAsync (int serial, const ApplicationInfo &desc, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
 The applicationAdded operation is called to notify an observer that an application was added. More...
 
void applicationInit (int serial, const ApplicationInfoSeq &applications, const ::Ice::Context &context=::Ice::noExplicitContext)
 applicationInit is called after the registration of an observer to indicate the state of the registry. More...
 
::std::function< void()> applicationInitAsync (int serial, const ApplicationInfoSeq &applications, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
 applicationInit is called after the registration of an observer to indicate the state of the registry. More...
 
template<template< typename > class P = ::std::promise>
auto applicationInitAsync (int serial, const ApplicationInfoSeq &applications, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
 applicationInit is called after the registration of an observer to indicate the state of the registry. More...
 
void applicationRemoved (int serial, const ::std::string &name, const ::Ice::Context &context=::Ice::noExplicitContext)
 The applicationRemoved operation is called to notify an observer that an application was removed. More...
 
::std::function< void()> applicationRemovedAsync (int serial, const ::std::string &name, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
 The applicationRemoved operation is called to notify an observer that an application was removed. More...
 
template<template< typename > class P = ::std::promise>
auto applicationRemovedAsync (int serial, const ::std::string &name, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
 The applicationRemoved operation is called to notify an observer that an application was removed. More...
 
void applicationUpdated (int serial, const ApplicationUpdateInfo &desc, const ::Ice::Context &context=::Ice::noExplicitContext)
 The applicationUpdated operation is called to notify an observer that an application was updated. More...
 
::std::function< void()> applicationUpdatedAsync (int serial, const ApplicationUpdateInfo &desc, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
 The applicationUpdated operation is called to notify an observer that an application was updated. More...
 
template<template< typename > class P = ::std::promise>
auto applicationUpdatedAsync (int serial, const ApplicationUpdateInfo &desc, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
 The applicationUpdated operation is called to notify an observer that an application was updated. More...
 
- Public Member Functions inherited from Ice::Proxy< ApplicationObserverPrx, ::Ice::ObjectPrx >
::std::shared_ptr< ApplicationObserverPrx > 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< ApplicationObserverPrx > ice_batchDatagram () const
 Obtains a proxy that is identical to this proxy, but uses batch datagram invocations. More...
 
::std::shared_ptr< ApplicationObserverPrx > ice_batchOneway () const
 Obtains a proxy that is identical to this proxy, but uses batch oneway invocations. More...
 
::std::shared_ptr< ApplicationObserverPrx > ice_collocationOptimized (bool b) const
 Obtains a proxy that is identical to this proxy, except for collocation optimization. More...
 
::std::shared_ptr< ApplicationObserverPrx > 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< ApplicationObserverPrx > ice_connectionCached (bool b) const
 Obtains a proxy that is identical to this proxy, except for connection caching. More...
 
::std::shared_ptr< ApplicationObserverPrx > 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< ApplicationObserverPrx > 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< ApplicationObserverPrx > ice_datagram () const
 Obtains a proxy that is identical to this proxy, but uses datagram invocations. More...
 
::std::shared_ptr< ApplicationObserverPrx > 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< ApplicationObserverPrx > ice_endpoints (const ::Ice::EndpointSeq &endpoints) const
 Obtains a proxy that is identical to this proxy, except for the endpoints. More...
 
::std::shared_ptr< ApplicationObserverPrx > 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< ApplicationObserverPrx > 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< ApplicationObserverPrx > ice_invocationTimeout (int timeout) const
 Obtains a proxy that is identical to this proxy, except for the invocation timeout. More...
 
::std::shared_ptr< ApplicationObserverPrx > 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< ApplicationObserverPrx > ice_locatorCacheTimeout (int timeout) const
 Obtains a proxy that is identical to this proxy, except for the locator cache timeout. More...
 
::std::shared_ptr< ApplicationObserverPrx > ice_oneway () const
 Obtains a proxy that is identical to this proxy, but uses oneway invocations. More...
 
::std::shared_ptr< ApplicationObserverPrx > ice_preferSecure (bool b) const
 Obtains a proxy that is identical to this proxy, except for its endpoint selection policy. More...
 
::std::shared_ptr< ApplicationObserverPrx > 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< ApplicationObserverPrx > ice_secure (bool b) const
 Obtains a proxy that is identical to this proxy, except for how it selects endpoints. More...
 
::std::shared_ptr< ApplicationObserverPrx > 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< ApplicationObserverPrx > 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...
 

Detailed Description

The database observer interface.

Observers should implement this interface to receive information about the state of the IceGrid registry database.

Member Function Documentation

◆ applicationAdded()

void IceGrid::ApplicationObserverPrx::applicationAdded ( int  serial,
const ApplicationInfo desc,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

The applicationAdded operation is called to notify an observer that an application was added.

Parameters
serialThe new serial number of the registry database.
descThe descriptor of the new application.
contextThe Context map to send with the invocation.

◆ applicationAddedAsync() [1/2]

::std::function<void()> IceGrid::ApplicationObserverPrx::applicationAddedAsync ( int  serial,
const ApplicationInfo desc,
::std::function< void()>  response,
::std::function< void(::std::exception_ptr)>  ex = nullptr,
::std::function< void(bool)>  sent = nullptr,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

The applicationAdded operation is called to notify an observer that an application was added.

Parameters
serialThe new serial number of the registry database.
descThe descriptor of the new application.
responseThe response callback.
exThe exception callback.
sentThe sent callback.
contextThe Context map to send with the invocation.
Returns
A function that can be called to cancel the invocation locally.

◆ applicationAddedAsync() [2/2]

template<template< typename > class P = ::std::promise>
auto IceGrid::ApplicationObserverPrx::applicationAddedAsync ( int  serial,
const ApplicationInfo desc,
const ::Ice::Context context = ::Ice::noExplicitContext 
) -> decltype(::std::declval<P<void>>().get_future())
inline

The applicationAdded operation is called to notify an observer that an application was added.

Parameters
serialThe new serial number of the registry database.
descThe descriptor of the new application.
contextThe Context map to send with the invocation.
Returns
The future object for the invocation.

◆ applicationInit()

void IceGrid::ApplicationObserverPrx::applicationInit ( int  serial,
const ApplicationInfoSeq applications,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

applicationInit is called after the registration of an observer to indicate the state of the registry.

Parameters
serialThe current serial number of the registry database. This serial number allows observers to make sure that their internal state is synchronized with the registry.
applicationsThe applications currently registered with the registry.
contextThe Context map to send with the invocation.

◆ applicationInitAsync() [1/2]

::std::function<void()> IceGrid::ApplicationObserverPrx::applicationInitAsync ( int  serial,
const ApplicationInfoSeq applications,
::std::function< void()>  response,
::std::function< void(::std::exception_ptr)>  ex = nullptr,
::std::function< void(bool)>  sent = nullptr,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

applicationInit is called after the registration of an observer to indicate the state of the registry.

Parameters
serialThe current serial number of the registry database. This serial number allows observers to make sure that their internal state is synchronized with the registry.
applicationsThe applications currently registered with the registry.
responseThe response callback.
exThe exception callback.
sentThe sent callback.
contextThe Context map to send with the invocation.
Returns
A function that can be called to cancel the invocation locally.

◆ applicationInitAsync() [2/2]

template<template< typename > class P = ::std::promise>
auto IceGrid::ApplicationObserverPrx::applicationInitAsync ( int  serial,
const ApplicationInfoSeq applications,
const ::Ice::Context context = ::Ice::noExplicitContext 
) -> decltype(::std::declval<P<void>>().get_future())
inline

applicationInit is called after the registration of an observer to indicate the state of the registry.

Parameters
serialThe current serial number of the registry database. This serial number allows observers to make sure that their internal state is synchronized with the registry.
applicationsThe applications currently registered with the registry.
contextThe Context map to send with the invocation.
Returns
The future object for the invocation.

◆ applicationRemoved()

void IceGrid::ApplicationObserverPrx::applicationRemoved ( int  serial,
const ::std::string &  name,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

The applicationRemoved operation is called to notify an observer that an application was removed.

Parameters
serialThe new serial number of the registry database.
nameThe name of the application that was removed.
contextThe Context map to send with the invocation.

◆ applicationRemovedAsync() [1/2]

::std::function<void()> IceGrid::ApplicationObserverPrx::applicationRemovedAsync ( int  serial,
const ::std::string &  name,
::std::function< void()>  response,
::std::function< void(::std::exception_ptr)>  ex = nullptr,
::std::function< void(bool)>  sent = nullptr,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

The applicationRemoved operation is called to notify an observer that an application was removed.

Parameters
serialThe new serial number of the registry database.
nameThe name of the application that was removed.
responseThe response callback.
exThe exception callback.
sentThe sent callback.
contextThe Context map to send with the invocation.
Returns
A function that can be called to cancel the invocation locally.

◆ applicationRemovedAsync() [2/2]

template<template< typename > class P = ::std::promise>
auto IceGrid::ApplicationObserverPrx::applicationRemovedAsync ( int  serial,
const ::std::string &  name,
const ::Ice::Context context = ::Ice::noExplicitContext 
) -> decltype(::std::declval<P<void>>().get_future())
inline

The applicationRemoved operation is called to notify an observer that an application was removed.

Parameters
serialThe new serial number of the registry database.
nameThe name of the application that was removed.
contextThe Context map to send with the invocation.
Returns
The future object for the invocation.

◆ applicationUpdated()

void IceGrid::ApplicationObserverPrx::applicationUpdated ( int  serial,
const ApplicationUpdateInfo desc,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

The applicationUpdated operation is called to notify an observer that an application was updated.

Parameters
serialThe new serial number of the registry database.
descThe descriptor of the update.
contextThe Context map to send with the invocation.

◆ applicationUpdatedAsync() [1/2]

::std::function<void()> IceGrid::ApplicationObserverPrx::applicationUpdatedAsync ( int  serial,
const ApplicationUpdateInfo desc,
::std::function< void()>  response,
::std::function< void(::std::exception_ptr)>  ex = nullptr,
::std::function< void(bool)>  sent = nullptr,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

The applicationUpdated operation is called to notify an observer that an application was updated.

Parameters
serialThe new serial number of the registry database.
descThe descriptor of the update.
responseThe response callback.
exThe exception callback.
sentThe sent callback.
contextThe Context map to send with the invocation.
Returns
A function that can be called to cancel the invocation locally.

◆ applicationUpdatedAsync() [2/2]

template<template< typename > class P = ::std::promise>
auto IceGrid::ApplicationObserverPrx::applicationUpdatedAsync ( int  serial,
const ApplicationUpdateInfo desc,
const ::Ice::Context context = ::Ice::noExplicitContext 
) -> decltype(::std::declval<P<void>>().get_future())
inline

The applicationUpdated operation is called to notify an observer that an application was updated.

Parameters
serialThe new serial number of the registry database.
descThe descriptor of the update.
contextThe Context map to send with the invocation.
Returns
The future object for the invocation.

◆ ice_staticId()

static const ::std::string& IceGrid::ApplicationObserverPrx::ice_staticId ( )
static

Obtains the Slice type ID of this interface.

Returns
The fully-scoped type ID.

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