TAO_ESF
2.2.8
|
Extend the Proxy_Admin interface to provide methods for filtering. More...
#include <ESF_Peer_Admin.h>
Public Member Functions | |
TAO_ESF_Peer_Admin (EVENT_CHANNEL *ec) | |
Constructor. More... | |
virtual | ~TAO_ESF_Peer_Admin (void) |
destructor More... | |
virtual void | peer_connected (PEER *peer) |
virtual void | peer_reconnected (PEER *peer) |
virtual void | peer_disconnected (PEER *peer) |
Public Member Functions inherited from TAO_ESF_Proxy_Admin< EVENT_CHANNEL, PROXY, INTERFACE > | |
TAO_ESF_Proxy_Admin (EVENT_CHANNEL *ec) | |
Constructor, allocate the internal collection. More... | |
virtual | ~TAO_ESF_Proxy_Admin (void) |
Cleanup internal resources, destroy the internal collection. More... | |
void | for_each (TAO_ESF_Worker< PROXY > *worker) |
Iterate over its internal collection. More... | |
virtual INTERFACE * | obtain (void) |
Create a new PROXY and activate it. More... | |
virtual void | shutdown (void) |
virtual void | connected (PROXY *proxy) |
virtual void | reconnected (PROXY *proxy) |
virtual void | disconnected (PROXY *proxy) |
Additional Inherited Members | |
Protected Attributes inherited from TAO_ESF_Proxy_Admin< EVENT_CHANNEL, PROXY, INTERFACE > | |
EVENT_CHANNEL * | event_channel_ |
The Event Channel we belong to. More... | |
Extend the Proxy_Admin interface to provide methods for filtering.
Some Event Services that perform filtering have to propagate the consumer connect/disconnect activities to the suppliers, and vice-versa. In that scenario the ESF_Proxy_Admin<> interface is augmented with connected()/reconnected()/disconnected() operations for the proxy peers (i.e. the ProxySuppliers for the ProxyConsumers and vice-versa).
In addition to the requirements imposed by ESF_Proxy_Admin<> the PROXY interface must implement:
* void connected (PEER *peer) throw (); * void reconnected (PEER *peer) throw (); * void disconnected (PEER *peer) throw (); *
Similarly, the PEER interface must implement:
* void connected (PROXY *proxy) throw (); * void reconnected (PROXY *proxy) throw (); * void disconnected (PROXY *proxy) throw (); *
TAO_ESF_Peer_Admin< EVENT_CHANNEL, PROXY, INTERFACE, PEER >::TAO_ESF_Peer_Admin | ( | EVENT_CHANNEL * | ec | ) |
Constructor.
|
virtual |
destructor
|
virtual |
A <peer> has connected, this is invoked when the peer's client has invoked the connect_xxx_yyy() method. The default implementation is a no-op.
|
virtual |
A <peer> has been disconnected. The default implementation removes the object from the collection and deactivates the proxy.
|
virtual |
A <peer> has reconnected, i.e. its client has invoked the connect_xxx_yyy() method, but the peer was connected already. The default implementation delegates on the collection <reconnected> method