com::cosylab::cdb::client::CDBAccess::ChangeListener Class Reference

Inheritance diagram for com::cosylab::cdb::client::CDBAccess::ChangeListener:
Inheritance graph
[legend]
Collaboration diagram for com::cosylab::cdb::client::CDBAccess::ChangeListener:
Collaboration graph
[legend]

List of all members.

Classes

class  ReconnectTask

Public Member Functions

void object_changed (String curl)
void handle (DAL dal, String curl, DAOProxy conn)
boolean isRegistered (String curl)
void destroy ()

Private Attributes

HashMap curlMap = new HashMap()
HashMap dalMap = new HashMap()
DALChangeListener cl = null

Detailed Description

This private class will handle CDB restart or data change in the CDB.

Author:
Dragan Vitas (dragan.vitas@cosylab.com)
Version:
@VERSION@

Member Function Documentation

void com::cosylab::cdb::client::CDBAccess::ChangeListener::destroy (  )  [inline]

Unregister this listener from DAL server(s).

References curlMap, dalMap, and com::cosylab::CDB::DALOperations::remove_change_listener().

Referenced by com::cosylab::cdb::client::CDBAccess::destroy().

void com::cosylab::cdb::client::CDBAccess::ChangeListener::handle ( DAL  dal,
String  curl,
DAOProxy  conn 
) [inline]

Add listener for curl on DAL server so the connectable object can be reconnected.

Parameters:
dal the reference of the DAL server where the curl is obtained
curl the path for our DAO object
conn the object for which we made the DAO

References com::cosylab::CDB::DALChangeListenerPOA::_this(), com::cosylab::CDB::DALOperations::add_change_listener(), com::cosylab::cdb::client::CDBAccess::changeListener, cl, curlMap, dalMap, com::cosylab::CDB::DALOperations::listen_for_changes(), and com::cosylab::cdb::client::CDBAccess::orb.

Referenced by com::cosylab::cdb::client::CDBAccess::internalConnect().

boolean com::cosylab::cdb::client::CDBAccess::ChangeListener::isRegistered ( String  curl  )  [inline]

Checks if object with the given CURL is already registered to this listener.

Parameters:
curl the path for our DAO object

References curlMap.

Referenced by com::cosylab::cdb::client::CDBAccess::internalConnect().

void com::cosylab::cdb::client::CDBAccess::ChangeListener::object_changed ( String  curl  )  [inline]

Called from DAL server when curl changed or when DAL startups. NOTE: reconnection does not work if DAL is running on Java (Sun) CORBA - server problem (DAL reference!)

Parameters:
curl changed entity in CDB
See also:
DALChangeListenerOperations::object_changed(String)

References curlMap.


Member Data Documentation

CORBA instance of DALChangeListener object.

Referenced by handle().

Map of monitored CURLs entities.

Referenced by destroy(), handle(), isRegistered(), and object_changed().

Map of registered listeners on DALs.

Referenced by destroy(), and handle().


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

Generated by  doxygen 1.6.2