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

The node observer interface. More...

#include <IceGrid/IceGrid.h>

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

Public Member Functions

void nodeDown (const ::std::string &name, const ::Ice::Context &context=::Ice::noExplicitContext)
 The nodeDown operation is called to notify an observer that a node went down. More...
 
::std::function< void()> nodeDownAsync (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 nodeDown operation is called to notify an observer that a node went down. More...
 
template<template< typename > class P = ::std::promise>
auto nodeDownAsync (const ::std::string &name, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
 The nodeDown operation is called to notify an observer that a node went down. More...
 
void nodeInit (const NodeDynamicInfoSeq &nodes, const ::Ice::Context &context=::Ice::noExplicitContext)
 The nodeInit operation indicates the current state of nodes. More...
 
::std::function< void()> nodeInitAsync (const NodeDynamicInfoSeq &nodes, ::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 nodeInit operation indicates the current state of nodes. More...
 
template<template< typename > class P = ::std::promise>
auto nodeInitAsync (const NodeDynamicInfoSeq &nodes, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
 The nodeInit operation indicates the current state of nodes. More...
 
void nodeUp (const NodeDynamicInfo &node, const ::Ice::Context &context=::Ice::noExplicitContext)
 The nodeUp operation is called to notify an observer that a node came up. More...
 
::std::function< void()> nodeUpAsync (const NodeDynamicInfo &node, ::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 nodeUp operation is called to notify an observer that a node came up. More...
 
template<template< typename > class P = ::std::promise>
auto nodeUpAsync (const NodeDynamicInfo &node, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
 The nodeUp operation is called to notify an observer that a node came up. More...
 
void updateAdapter (const ::std::string &node, const AdapterDynamicInfo &updatedInfo, const ::Ice::Context &context=::Ice::noExplicitContext)
 The updateAdapter operation is called to notify an observer that the state of an adapter changed. More...
 
::std::function< void()> updateAdapterAsync (const ::std::string &node, const AdapterDynamicInfo &updatedInfo, ::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 updateAdapter operation is called to notify an observer that the state of an adapter changed. More...
 
template<template< typename > class P = ::std::promise>
auto updateAdapterAsync (const ::std::string &node, const AdapterDynamicInfo &updatedInfo, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
 The updateAdapter operation is called to notify an observer that the state of an adapter changed. More...
 
void updateServer (const ::std::string &node, const ServerDynamicInfo &updatedInfo, const ::Ice::Context &context=::Ice::noExplicitContext)
 The updateServer operation is called to notify an observer that the state of a server changed. More...
 
::std::function< void()> updateServerAsync (const ::std::string &node, const ServerDynamicInfo &updatedInfo, ::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 updateServer operation is called to notify an observer that the state of a server changed. More...
 
template<template< typename > class P = ::std::promise>
auto updateServerAsync (const ::std::string &node, const ServerDynamicInfo &updatedInfo, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
 The updateServer operation is called to notify an observer that the state of a server changed. More...
 
- Public Member Functions inherited from Ice::Proxy< NodeObserverPrx, ::Ice::ObjectPrx >
::std::shared_ptr< NodeObserverPrx > 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< NodeObserverPrx > ice_batchDatagram () const
 Obtains a proxy that is identical to this proxy, but uses batch datagram invocations. More...
 
::std::shared_ptr< NodeObserverPrx > ice_batchOneway () const
 Obtains a proxy that is identical to this proxy, but uses batch oneway invocations. More...
 
::std::shared_ptr< NodeObserverPrx > ice_collocationOptimized (bool b) const
 Obtains a proxy that is identical to this proxy, except for collocation optimization. More...
 
::std::shared_ptr< NodeObserverPrx > 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< NodeObserverPrx > ice_connectionCached (bool b) const
 Obtains a proxy that is identical to this proxy, except for connection caching. More...
 
::std::shared_ptr< NodeObserverPrx > 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< NodeObserverPrx > 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< NodeObserverPrx > ice_datagram () const
 Obtains a proxy that is identical to this proxy, but uses datagram invocations. More...
 
::std::shared_ptr< NodeObserverPrx > 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< NodeObserverPrx > ice_endpoints (const ::Ice::EndpointSeq &endpoints) const
 Obtains a proxy that is identical to this proxy, except for the endpoints. More...
 
::std::shared_ptr< NodeObserverPrx > 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< NodeObserverPrx > 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< NodeObserverPrx > ice_invocationTimeout (int timeout) const
 Obtains a proxy that is identical to this proxy, except for the invocation timeout. More...
 
::std::shared_ptr< NodeObserverPrx > 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< NodeObserverPrx > ice_locatorCacheTimeout (int timeout) const
 Obtains a proxy that is identical to this proxy, except for the locator cache timeout. More...
 
::std::shared_ptr< NodeObserverPrx > ice_oneway () const
 Obtains a proxy that is identical to this proxy, but uses oneway invocations. More...
 
::std::shared_ptr< NodeObserverPrx > ice_preferSecure (bool b) const
 Obtains a proxy that is identical to this proxy, except for its endpoint selection policy. More...
 
::std::shared_ptr< NodeObserverPrx > 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< NodeObserverPrx > ice_secure (bool b) const
 Obtains a proxy that is identical to this proxy, except for how it selects endpoints. More...
 
::std::shared_ptr< NodeObserverPrx > 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< NodeObserverPrx > 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 node observer interface.

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

Member Function Documentation

◆ ice_staticId()

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

Obtains the Slice type ID of this interface.

Returns
The fully-scoped type ID.

◆ nodeDown()

void IceGrid::NodeObserverPrx::nodeDown ( const ::std::string &  name,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

The nodeDown operation is called to notify an observer that a node went down.

Parameters
nameThe node name.
contextThe Context map to send with the invocation.

◆ nodeDownAsync() [1/2]

::std::function<void()> IceGrid::NodeObserverPrx::nodeDownAsync ( 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 nodeDown operation is called to notify an observer that a node went down.

Parameters
nameThe node name.
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.

◆ nodeDownAsync() [2/2]

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

The nodeDown operation is called to notify an observer that a node went down.

Parameters
nameThe node name.
contextThe Context map to send with the invocation.
Returns
The future object for the invocation.

◆ nodeInit()

void IceGrid::NodeObserverPrx::nodeInit ( const NodeDynamicInfoSeq nodes,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

The nodeInit operation indicates the current state of nodes.

It is called after the registration of an observer.

Parameters
nodesThe current state of the nodes.
contextThe Context map to send with the invocation.

◆ nodeInitAsync() [1/2]

::std::function<void()> IceGrid::NodeObserverPrx::nodeInitAsync ( const NodeDynamicInfoSeq nodes,
::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 nodeInit operation indicates the current state of nodes.

It is called after the registration of an observer.

Parameters
nodesThe current state of the nodes.
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.

◆ nodeInitAsync() [2/2]

template<template< typename > class P = ::std::promise>
auto IceGrid::NodeObserverPrx::nodeInitAsync ( const NodeDynamicInfoSeq nodes,
const ::Ice::Context context = ::Ice::noExplicitContext 
) -> decltype(::std::declval<P<void>>().get_future())
inline

The nodeInit operation indicates the current state of nodes.

It is called after the registration of an observer.

Parameters
nodesThe current state of the nodes.
contextThe Context map to send with the invocation.
Returns
The future object for the invocation.

◆ nodeUp()

void IceGrid::NodeObserverPrx::nodeUp ( const NodeDynamicInfo node,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

The nodeUp operation is called to notify an observer that a node came up.

Parameters
nodeThe node state.
contextThe Context map to send with the invocation.

◆ nodeUpAsync() [1/2]

::std::function<void()> IceGrid::NodeObserverPrx::nodeUpAsync ( const NodeDynamicInfo node,
::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 nodeUp operation is called to notify an observer that a node came up.

Parameters
nodeThe node state.
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.

◆ nodeUpAsync() [2/2]

template<template< typename > class P = ::std::promise>
auto IceGrid::NodeObserverPrx::nodeUpAsync ( const NodeDynamicInfo node,
const ::Ice::Context context = ::Ice::noExplicitContext 
) -> decltype(::std::declval<P<void>>().get_future())
inline

The nodeUp operation is called to notify an observer that a node came up.

Parameters
nodeThe node state.
contextThe Context map to send with the invocation.
Returns
The future object for the invocation.

◆ updateAdapter()

void IceGrid::NodeObserverPrx::updateAdapter ( const ::std::string &  node,
const AdapterDynamicInfo updatedInfo,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

The updateAdapter operation is called to notify an observer that the state of an adapter changed.

Parameters
nodeThe node hosting the adapter.
updatedInfoThe new adapter state.
contextThe Context map to send with the invocation.

◆ updateAdapterAsync() [1/2]

::std::function<void()> IceGrid::NodeObserverPrx::updateAdapterAsync ( const ::std::string &  node,
const AdapterDynamicInfo updatedInfo,
::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 updateAdapter operation is called to notify an observer that the state of an adapter changed.

Parameters
nodeThe node hosting the adapter.
updatedInfoThe new adapter state.
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.

◆ updateAdapterAsync() [2/2]

template<template< typename > class P = ::std::promise>
auto IceGrid::NodeObserverPrx::updateAdapterAsync ( const ::std::string &  node,
const AdapterDynamicInfo updatedInfo,
const ::Ice::Context context = ::Ice::noExplicitContext 
) -> decltype(::std::declval<P<void>>().get_future())
inline

The updateAdapter operation is called to notify an observer that the state of an adapter changed.

Parameters
nodeThe node hosting the adapter.
updatedInfoThe new adapter state.
contextThe Context map to send with the invocation.
Returns
The future object for the invocation.

◆ updateServer()

void IceGrid::NodeObserverPrx::updateServer ( const ::std::string &  node,
const ServerDynamicInfo updatedInfo,
const ::Ice::Context context = ::Ice::noExplicitContext 
)
inline

The updateServer operation is called to notify an observer that the state of a server changed.

Parameters
nodeThe node hosting the server.
updatedInfoThe new server state.
contextThe Context map to send with the invocation.

◆ updateServerAsync() [1/2]

::std::function<void()> IceGrid::NodeObserverPrx::updateServerAsync ( const ::std::string &  node,
const ServerDynamicInfo updatedInfo,
::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 updateServer operation is called to notify an observer that the state of a server changed.

Parameters
nodeThe node hosting the server.
updatedInfoThe new server state.
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.

◆ updateServerAsync() [2/2]

template<template< typename > class P = ::std::promise>
auto IceGrid::NodeObserverPrx::updateServerAsync ( const ::std::string &  node,
const ServerDynamicInfo updatedInfo,
const ::Ice::Context context = ::Ice::noExplicitContext 
) -> decltype(::std::declval<P<void>>().get_future())
inline

The updateServer operation is called to notify an observer that the state of a server changed.

Parameters
nodeThe node hosting the server.
updatedInfoThe new server state.
contextThe Context map to send with the invocation.
Returns
The future object for the invocation.

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