Ice 3.7 Slice API Reference
Operations | List of all members
Ice::Instrumentation::CommunicatorObserver Local Interface Reference

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

defined in <Ice/Instrumentation.ice>

local interface CommunicatorObserver { ... }

Operations

Observer getConnectionEstablishmentObserver (Endpoint endpt, string connector)
 This method should return an observer for the given endpoint information and connector. More...
 
ConnectionObserver getConnectionObserver (ConnectionInfo c, Endpoint e, ConnectionState s, ConnectionObserver o)
 This method should return a connection observer for the given connection. More...
 
DispatchObserver getDispatchObserver (Current c, int size)
 This method should return a dispatch observer for the given dispatch. More...
 
Observer getEndpointLookupObserver (Endpoint endpt)
 This method should return an observer for the given endpoint information. More...
 
InvocationObserver getInvocationObserver (Object *prx, string operation, Context ctx)
 This method should return an invocation observer for the given invocation. More...
 
ThreadObserver getThreadObserver (string parent, string id, ThreadState s, ThreadObserver o)
 This method should return a thread observer for the given thread. More...
 
void setObserverUpdater (ObserverUpdater updater)
 The Ice run-time calls this method when the communicator is initialized. More...
 

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.

Operation Documentation

◆ getConnectionEstablishmentObserver()

Observer getConnectionEstablishmentObserver ( Endpoint  endpt,
string  connector 
)

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()

ConnectionObserver getConnectionObserver ( ConnectionInfo  c,
Endpoint  e,
ConnectionState  s,
ConnectionObserver  o 
)

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()

DispatchObserver getDispatchObserver ( Current  c,
int  size 
)

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()

Observer getEndpointLookupObserver ( Endpoint  endpt)

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()

InvocationObserver getInvocationObserver ( Object *  prx,
string  operation,
Context  ctx 
)

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()

ThreadObserver getThreadObserver ( string  parent,
string  id,
ThreadState  s,
ThreadObserver  o 
)

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()

void setObserverUpdater ( ObserverUpdater  updater)

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 interface was generated from the following file: