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

The interface of the admin object that allows an Ice application the attach its RemoteLogger to the Logger of this admin object's Ice communicator. More...

#include <Ice/Ice.h>

Inheritance diagram for Ice::LoggerAdminPrx:
Inheritance graph
[legend]
Collaboration diagram for Ice::LoggerAdminPrx:
Collaboration graph
[legend]

Public Member Functions

void attachRemoteLogger (const ::std::shared_ptr< RemoteLoggerPrx > &prx, const LogMessageTypeSeq &messageTypes, const StringSeq &traceCategories, int messageMax, const Context &context=noExplicitContext)
 Attaches a RemoteLogger object to the local logger. More...
 
::std::function< void()> attachRemoteLoggerAsync (const ::std::shared_ptr< RemoteLoggerPrx > &prx, const LogMessageTypeSeq &messageTypes, const StringSeq &traceCategories, int messageMax, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const Context &context=noExplicitContext)
 Attaches a RemoteLogger object to the local logger. More...
 
template<template< typename > class P = ::std::promise>
auto attachRemoteLoggerAsync (const ::std::shared_ptr< RemoteLoggerPrx > &prx, const LogMessageTypeSeq &messageTypes, const StringSeq &traceCategories, int messageMax, const Context &context=noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
 Attaches a RemoteLogger object to the local logger. More...
 
bool detachRemoteLogger (const ::std::shared_ptr< RemoteLoggerPrx > &prx, const Context &context=noExplicitContext)
 Detaches a RemoteLogger object from the local logger. More...
 
::std::function< void()> detachRemoteLoggerAsync (const ::std::shared_ptr< RemoteLoggerPrx > &prx, ::std::function< void(bool)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const Context &context=noExplicitContext)
 Detaches a RemoteLogger object from the local logger. More...
 
template<template< typename > class P = ::std::promise>
auto detachRemoteLoggerAsync (const ::std::shared_ptr< RemoteLoggerPrx > &prx, const Context &context=noExplicitContext) -> decltype(::std::declval< P< bool >>().get_future())
 Detaches a RemoteLogger object from the local logger. More...
 
LogMessageSeq getLog (const LogMessageTypeSeq &messageTypes, const StringSeq &traceCategories, int messageMax, ::std::string &prefix, const Context &context=noExplicitContext)
 Retrieves log messages recently logged. More...
 
::std::function< void()> getLogAsync (const LogMessageTypeSeq &messageTypes, const StringSeq &traceCategories, int messageMax, ::std::function< void(::Ice::LogMessageSeq, ::std::string)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const Context &context=noExplicitContext)
 Retrieves log messages recently logged. More...
 
template<template< typename > class P = ::std::promise>
auto getLogAsync (const LogMessageTypeSeq &messageTypes, const StringSeq &traceCategories, int messageMax, const Context &context=noExplicitContext) -> decltype(::std::declval< P< LoggerAdmin::GetLogResult >>().get_future())
 Retrieves log messages recently logged. More...
 
- Public Member Functions inherited from Ice::Proxy< LoggerAdminPrx, ObjectPrx >
::std::shared_ptr< LoggerAdminPrxice_adapterId (const ::std::string &id) const
 Obtains a proxy that is identical to this proxy, except for the adapter ID. More...
 
::std::shared_ptr< LoggerAdminPrxice_batchDatagram () const
 Obtains a proxy that is identical to this proxy, but uses batch datagram invocations. More...
 
::std::shared_ptr< LoggerAdminPrxice_batchOneway () const
 Obtains a proxy that is identical to this proxy, but uses batch oneway invocations. More...
 
::std::shared_ptr< LoggerAdminPrxice_collocationOptimized (bool b) const
 Obtains a proxy that is identical to this proxy, except for collocation optimization. More...
 
::std::shared_ptr< LoggerAdminPrxice_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< LoggerAdminPrxice_connectionCached (bool b) const
 Obtains a proxy that is identical to this proxy, except for connection caching. More...
 
::std::shared_ptr< LoggerAdminPrxice_connectionId (const ::std::string &id) const
 Obtains a proxy that is identical to this proxy, except for its connection ID. More...
 
::std::shared_ptr< LoggerAdminPrxice_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< LoggerAdminPrxice_datagram () const
 Obtains a proxy that is identical to this proxy, but uses datagram invocations. More...
 
::std::shared_ptr< LoggerAdminPrxice_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< LoggerAdminPrxice_endpoints (const ::Ice::EndpointSeq &endpoints) const
 Obtains a proxy that is identical to this proxy, except for the endpoints. More...
 
::std::shared_ptr< LoggerAdminPrxice_endpointSelection (::Ice::EndpointSelectionType type) const
 Obtains a proxy that is identical to this proxy, except for the endpoint selection policy. More...
 
::std::shared_ptr< LoggerAdminPrxice_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< LoggerAdminPrxice_invocationTimeout (int timeout) const
 Obtains a proxy that is identical to this proxy, except for the invocation timeout. More...
 
::std::shared_ptr< LoggerAdminPrxice_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< LoggerAdminPrxice_locatorCacheTimeout (int timeout) const
 Obtains a proxy that is identical to this proxy, except for the locator cache timeout. More...
 
::std::shared_ptr< LoggerAdminPrxice_oneway () const
 Obtains a proxy that is identical to this proxy, but uses oneway invocations. More...
 
::std::shared_ptr< LoggerAdminPrxice_preferSecure (bool b) const
 Obtains a proxy that is identical to this proxy, except for its endpoint selection policy. More...
 
::std::shared_ptr< LoggerAdminPrxice_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< LoggerAdminPrxice_secure (bool b) const
 Obtains a proxy that is identical to this proxy, except for how it selects endpoints. More...
 
::std::shared_ptr< LoggerAdminPrxice_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< LoggerAdminPrxice_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 interface of the admin object that allows an Ice application the attach its RemoteLogger to the Logger of this admin object's Ice communicator.

Member Function Documentation

◆ attachRemoteLogger()

void Ice::LoggerAdminPrx::attachRemoteLogger ( const ::std::shared_ptr< RemoteLoggerPrx > &  prx,
const LogMessageTypeSeq messageTypes,
const StringSeq traceCategories,
int  messageMax,
const Context context = noExplicitContext 
)
inline

Attaches a RemoteLogger object to the local logger.

attachRemoteLogger calls init on the provided RemoteLogger proxy.

Parameters
prxA proxy to the remote logger.
messageTypesThe list of message types that the remote logger wishes to receive. An empty list means no filtering (send all message types).
traceCategoriesThe categories of traces that the remote logger wishes to receive. This parameter is ignored if messageTypes is not empty and does not include trace. An empty list means no filtering (send all trace categories).
messageMaxThe maximum number of log messages (of all types) to be provided to init. A negative value requests all messages available.
contextThe Context map to send with the invocation.
Exceptions
Ice::RemoteLoggerAlreadyAttachedExceptionRaised if this remote logger is already attached to this admin object.

◆ attachRemoteLoggerAsync() [1/2]

::std::function<void()> Ice::LoggerAdminPrx::attachRemoteLoggerAsync ( const ::std::shared_ptr< RemoteLoggerPrx > &  prx,
const LogMessageTypeSeq messageTypes,
const StringSeq traceCategories,
int  messageMax,
::std::function< void()>  response,
::std::function< void(::std::exception_ptr)>  ex = nullptr,
::std::function< void(bool)>  sent = nullptr,
const Context context = noExplicitContext 
)
inline

Attaches a RemoteLogger object to the local logger.

attachRemoteLogger calls init on the provided RemoteLogger proxy.

Parameters
prxA proxy to the remote logger.
messageTypesThe list of message types that the remote logger wishes to receive. An empty list means no filtering (send all message types).
traceCategoriesThe categories of traces that the remote logger wishes to receive. This parameter is ignored if messageTypes is not empty and does not include trace. An empty list means no filtering (send all trace categories).
messageMaxThe maximum number of log messages (of all types) to be provided to init. A negative value requests all messages available.
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.

◆ attachRemoteLoggerAsync() [2/2]

template<template< typename > class P = ::std::promise>
auto Ice::LoggerAdminPrx::attachRemoteLoggerAsync ( const ::std::shared_ptr< RemoteLoggerPrx > &  prx,
const LogMessageTypeSeq messageTypes,
const StringSeq traceCategories,
int  messageMax,
const Context context = noExplicitContext 
) -> decltype(::std::declval<P<void>>().get_future())
inline

Attaches a RemoteLogger object to the local logger.

attachRemoteLogger calls init on the provided RemoteLogger proxy.

Parameters
prxA proxy to the remote logger.
messageTypesThe list of message types that the remote logger wishes to receive. An empty list means no filtering (send all message types).
traceCategoriesThe categories of traces that the remote logger wishes to receive. This parameter is ignored if messageTypes is not empty and does not include trace. An empty list means no filtering (send all trace categories).
messageMaxThe maximum number of log messages (of all types) to be provided to init. A negative value requests all messages available.
contextThe Context map to send with the invocation.
Returns
The future object for the invocation.

◆ detachRemoteLogger()

bool Ice::LoggerAdminPrx::detachRemoteLogger ( const ::std::shared_ptr< RemoteLoggerPrx > &  prx,
const Context context = noExplicitContext 
)
inline

Detaches a RemoteLogger object from the local logger.

Parameters
prxA proxy to the remote logger.
contextThe Context map to send with the invocation.
Returns
True if the provided remote logger proxy was detached, and false otherwise.

◆ detachRemoteLoggerAsync() [1/2]

::std::function<void()> Ice::LoggerAdminPrx::detachRemoteLoggerAsync ( const ::std::shared_ptr< RemoteLoggerPrx > &  prx,
::std::function< void(bool)>  response,
::std::function< void(::std::exception_ptr)>  ex = nullptr,
::std::function< void(bool)>  sent = nullptr,
const Context context = noExplicitContext 
)
inline

Detaches a RemoteLogger object from the local logger.

Parameters
prxA proxy to the remote logger.
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.

◆ detachRemoteLoggerAsync() [2/2]

template<template< typename > class P = ::std::promise>
auto Ice::LoggerAdminPrx::detachRemoteLoggerAsync ( const ::std::shared_ptr< RemoteLoggerPrx > &  prx,
const Context context = noExplicitContext 
) -> decltype(::std::declval<P<bool>>().get_future())
inline

Detaches a RemoteLogger object from the local logger.

Parameters
prxA proxy to the remote logger.
contextThe Context map to send with the invocation.
Returns
The future object for the invocation.

◆ getLog()

LogMessageSeq Ice::LoggerAdminPrx::getLog ( const LogMessageTypeSeq messageTypes,
const StringSeq traceCategories,
int  messageMax,
::std::string &  prefix,
const Context context = noExplicitContext 
)
inline

Retrieves log messages recently logged.

Parameters
messageTypesThe list of message types that the caller wishes to receive. An empty list means no filtering (send all message types).
traceCategoriesThe categories of traces that caller wish to receive. This parameter is ignored if messageTypes is not empty and does not include trace. An empty list means no filtering (send all trace categories).
messageMaxThe maximum number of log messages (of all types) to be returned. A negative value requests all messages available.
prefixThe prefix of the associated local logger.
contextThe Context map to send with the invocation.
Returns
The Log messages.

◆ getLogAsync() [1/2]

::std::function<void()> Ice::LoggerAdminPrx::getLogAsync ( const LogMessageTypeSeq messageTypes,
const StringSeq traceCategories,
int  messageMax,
::std::function< void(::Ice::LogMessageSeq, ::std::string)>  response,
::std::function< void(::std::exception_ptr)>  ex = nullptr,
::std::function< void(bool)>  sent = nullptr,
const Context context = noExplicitContext 
)
inline

Retrieves log messages recently logged.

Parameters
messageTypesThe list of message types that the caller wishes to receive. An empty list means no filtering (send all message types).
traceCategoriesThe categories of traces that caller wish to receive. This parameter is ignored if messageTypes is not empty and does not include trace. An empty list means no filtering (send all trace categories).
messageMaxThe maximum number of log messages (of all types) to be returned. A negative value requests all messages available.
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.

◆ getLogAsync() [2/2]

template<template< typename > class P = ::std::promise>
auto Ice::LoggerAdminPrx::getLogAsync ( const LogMessageTypeSeq messageTypes,
const StringSeq traceCategories,
int  messageMax,
const Context context = noExplicitContext 
) -> decltype(::std::declval<P<LoggerAdmin::GetLogResult>>().get_future())
inline

Retrieves log messages recently logged.

Parameters
messageTypesThe list of message types that the caller wishes to receive. An empty list means no filtering (send all message types).
traceCategoriesThe categories of traces that caller wish to receive. This parameter is ignored if messageTypes is not empty and does not include trace. An empty list means no filtering (send all trace categories).
messageMaxThe maximum number of log messages (of all types) to be returned. A negative value requests all messages available.
contextThe Context map to send with the invocation.
Returns
The future object for the invocation.

◆ ice_staticId()

static const ::std::string& Ice::LoggerAdminPrx::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: