Ice 3.7 C++11 API Reference
Public Member Functions | List of all members
Ice::Instrumentation::CommunicatorObserver Class Referenceabstract

The communicator observer interface used by the Ice run-time to obtain and update observers for its observable objects. More...

#include <Ice/Ice.h>

Public Member Functions

virtual ::std::shared_ptr<::Ice::Instrumentation::ObservergetConnectionEstablishmentObserver (const ::std::shared_ptr<::Ice::Endpoint > &endpt, const ::std::string &connector)=0
 This method should return an observer for the given endpoint information and connector. More...
 
virtual ::std::shared_ptr<::Ice::Instrumentation::ConnectionObservergetConnectionObserver (const ::std::shared_ptr<::Ice::ConnectionInfo > &c, const ::std::shared_ptr<::Ice::Endpoint > &e, ConnectionState s, const ::std::shared_ptr< ConnectionObserver > &o)=0
 This method should return a connection observer for the given connection. More...
 
virtual ::std::shared_ptr<::Ice::Instrumentation::DispatchObservergetDispatchObserver (const ::Ice::Current &c, int size)=0
 This method should return a dispatch observer for the given dispatch. More...
 
virtual ::std::shared_ptr<::Ice::Instrumentation::ObservergetEndpointLookupObserver (const ::std::shared_ptr<::Ice::Endpoint > &endpt)=0
 This method should return an observer for the given endpoint information. More...
 
virtual ::std::shared_ptr<::Ice::Instrumentation::InvocationObservergetInvocationObserver (const ::std::shared_ptr<::Ice::ObjectPrx > &prx, const ::std::string &operation, const ::Ice::Context &ctx)=0
 This method should return an invocation observer for the given invocation. More...
 
virtual ::std::shared_ptr<::Ice::Instrumentation::ThreadObservergetThreadObserver (const ::std::string &parent, const ::std::string &id, ThreadState s, const ::std::shared_ptr< ThreadObserver > &o)=0
 This method should return a thread observer for the given thread. More...
 
virtual void setObserverUpdater (const ::std::shared_ptr< ObserverUpdater > &updater)=0
 The Ice run-time calls this method when the communicator is initialized. More...
 
virtual ~CommunicatorObserver ()
 

Detailed Description

The communicator observer interface used by the Ice run-time to obtain and update observers for its observable objects.

This interface should be implemented by add-ins that wish to observe Ice objects in order to collect statistics. An instance of this interface can be provided to the Ice run-time through the Ice communicator initialization data.

Constructor & Destructor Documentation

◆ ~CommunicatorObserver()

virtual Ice::Instrumentation::CommunicatorObserver::~CommunicatorObserver ( )
virtual

Member Function Documentation

◆ getConnectionEstablishmentObserver()

virtual ::std::shared_ptr<::Ice::Instrumentation::Observer> Ice::Instrumentation::CommunicatorObserver::getConnectionEstablishmentObserver ( const ::std::shared_ptr<::Ice::Endpoint > &  endpt,
const ::std::string &  connector 
)
pure virtual

This method should return an observer for the given endpoint information and connector.

The Ice run-time calls this method for each connection establishment attempt.

Parameters
endptThe endpoint.
connectorThe description of the connector. For IP transports, this is typically the IP address to connect to.
Returns
The observer to instrument the connection establishment.

◆ getConnectionObserver()

virtual ::std::shared_ptr<::Ice::Instrumentation::ConnectionObserver> Ice::Instrumentation::CommunicatorObserver::getConnectionObserver ( const ::std::shared_ptr<::Ice::ConnectionInfo > &  c,
const ::std::shared_ptr<::Ice::Endpoint > &  e,
ConnectionState  s,
const ::std::shared_ptr< ConnectionObserver > &  o 
)
pure virtual

This method should return a connection observer for the given connection.

The Ice run-time calls this method for each new connection and for all the Ice communicator connections when ObserverUpdater#updateConnectionObservers is called.

Parameters
cThe connection information.
eThe connection endpoint.
sThe state of the connection.
oThe old connection observer if one is already set or a null reference otherwise.
Returns
The connection observer to instrument the connection.

◆ getDispatchObserver()

virtual ::std::shared_ptr<::Ice::Instrumentation::DispatchObserver> Ice::Instrumentation::CommunicatorObserver::getDispatchObserver ( const ::Ice::Current c,
int  size 
)
pure virtual

This method should return a dispatch observer for the given dispatch.

The Ice run-time calls this method each time it receives an incoming invocation to be dispatched for an Ice object.

Parameters
cThe current object as provided to the Ice servant dispatching the invocation.
sizeThe size of the dispatch.
Returns
The dispatch observer to instrument the dispatch.

◆ getEndpointLookupObserver()

virtual ::std::shared_ptr<::Ice::Instrumentation::Observer> Ice::Instrumentation::CommunicatorObserver::getEndpointLookupObserver ( const ::std::shared_ptr<::Ice::Endpoint > &  endpt)
pure virtual

This method should return an observer for the given endpoint information.

The Ice run-time calls this method to resolve an endpoint and obtain the list of connectors.

For IP endpoints, this typically involves doing a DNS lookup to obtain the IP addresses associated with the DNS name.

Parameters
endptThe endpoint.
Returns
The observer to instrument the endpoint lookup.

◆ getInvocationObserver()

virtual ::std::shared_ptr<::Ice::Instrumentation::InvocationObserver> Ice::Instrumentation::CommunicatorObserver::getInvocationObserver ( const ::std::shared_ptr<::Ice::ObjectPrx > &  prx,
const ::std::string &  operation,
const ::Ice::Context ctx 
)
pure virtual

This method should return an invocation observer for the given invocation.

The Ice run-time calls this method for each new invocation on a proxy.

Parameters
prxThe proxy used for the invocation.
operationThe name of the invocation.
ctxThe context specified by the user.
Returns
The invocation observer to instrument the invocation.

◆ getThreadObserver()

virtual ::std::shared_ptr<::Ice::Instrumentation::ThreadObserver> Ice::Instrumentation::CommunicatorObserver::getThreadObserver ( const ::std::string &  parent,
const ::std::string &  id,
ThreadState  s,
const ::std::shared_ptr< ThreadObserver > &  o 
)
pure virtual

This method should return a thread observer for the given thread.

The Ice run-time calls this method for each new thread and for all the Ice communicator threads when ObserverUpdater#updateThreadObservers is called.

Parameters
parentThe parent of the thread.
idThe ID of the thread to observe.
sThe state of the thread.
oThe old thread observer if one is already set or a null reference otherwise.
Returns
The thread observer to instrument the thread.

◆ setObserverUpdater()

virtual void Ice::Instrumentation::CommunicatorObserver::setObserverUpdater ( const ::std::shared_ptr< ObserverUpdater > &  updater)
pure virtual

The Ice run-time calls this method when the communicator is initialized.

The add-in implementing this interface can use this object to get the Ice run-time to re-obtain observers for observed objects.

Parameters
updaterThe observer updater object.

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