Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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.

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

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

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

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)


Member Data Documentation

DALChangeListener com::cosylab::cdb::client::CDBAccess::ChangeListener::cl = null [private]
 

CORBA instance of DALChangeListener object.

HashMap com::cosylab::cdb::client::CDBAccess::ChangeListener::curlMap = new HashMap() [private]
 

Map of monitored CURLs entities.

HashMap com::cosylab::cdb::client::CDBAccess::ChangeListener::dalMap = new HashMap() [private]
 

Map of registered listeners on DALs.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:12:18 2009 for ACS Java API by doxygen 1.3.8