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

The invocation observer to instrument invocations on proxies. More...

#include <Ice/Ice.h>

Inheritance diagram for Ice::Instrumentation::InvocationObserver:
Inheritance graph
[legend]
Collaboration diagram for Ice::Instrumentation::InvocationObserver:
Collaboration graph
[legend]

Public Member Functions

virtual ::std::shared_ptr<::Ice::Instrumentation::CollocatedObservergetCollocatedObserver (const ::std::shared_ptr<::Ice::ObjectAdapter > &adapter, int requestId, int size)=0
 Get a collocated observer for this invocation. More...
 
virtual ::std::shared_ptr<::Ice::Instrumentation::RemoteObservergetRemoteObserver (const ::std::shared_ptr<::Ice::ConnectionInfo > &con, const ::std::shared_ptr<::Ice::Endpoint > &endpt, int requestId, int size)=0
 Get a remote observer for this invocation. More...
 
virtual void retried ()=0
 Notification of the invocation being retried. More...
 
virtual void userException ()=0
 Notification of a user exception. More...
 
virtual ~InvocationObserver ()
 
- Public Member Functions inherited from Ice::Instrumentation::Observer
virtual void attach ()=0
 This method is called when the instrumented object is created or when the observer is attached to an existing object. More...
 
virtual void detach ()=0
 This method is called when the instrumented object is destroyed and as a result the observer detached from the object. More...
 
virtual void failed (const ::std::string &exceptionName)=0
 Notification of a failure. More...
 
virtual ~Observer ()
 

Detailed Description

The invocation observer to instrument invocations on proxies.

A proxy invocation can either result in a collocated or remote invocation. If it results in a remote invocation, a sub-observer is requested for the remote invocation.

Constructor & Destructor Documentation

◆ ~InvocationObserver()

virtual Ice::Instrumentation::InvocationObserver::~InvocationObserver ( )
virtual

Member Function Documentation

◆ getCollocatedObserver()

virtual ::std::shared_ptr<::Ice::Instrumentation::CollocatedObserver> Ice::Instrumentation::InvocationObserver::getCollocatedObserver ( const ::std::shared_ptr<::Ice::ObjectAdapter > &  adapter,
int  requestId,
int  size 
)
pure virtual

Get a collocated observer for this invocation.

Parameters
adapterThe object adapter hosting the collocated Ice object.
requestIdThe ID of the invocation.
sizeThe size of the invocation.
Returns
The observer to instrument the collocated invocation.

◆ getRemoteObserver()

virtual ::std::shared_ptr<::Ice::Instrumentation::RemoteObserver> Ice::Instrumentation::InvocationObserver::getRemoteObserver ( const ::std::shared_ptr<::Ice::ConnectionInfo > &  con,
const ::std::shared_ptr<::Ice::Endpoint > &  endpt,
int  requestId,
int  size 
)
pure virtual

Get a remote observer for this invocation.

Parameters
conThe connection information.
endptThe connection endpoint.
requestIdThe ID of the invocation.
sizeThe size of the invocation.
Returns
The observer to instrument the remote invocation.

◆ retried()

virtual void Ice::Instrumentation::InvocationObserver::retried ( )
pure virtual

Notification of the invocation being retried.

◆ userException()

virtual void Ice::Instrumentation::InvocationObserver::userException ( )
pure virtual

Notification of a user exception.


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