

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 |
This private class will handle CDB restart or data change in the CDB.
| 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.
| 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.
| 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] |
CORBA instance of DALChangeListener object.
Referenced by handle().
HashMap com::cosylab::cdb::client::CDBAccess::ChangeListener::curlMap = new HashMap() [private] |
Map of monitored CURLs entities.
Referenced by destroy(), handle(), isRegistered(), and object_changed().
HashMap com::cosylab::cdb::client::CDBAccess::ChangeListener::dalMap = new HashMap() [private] |
1.6.2