Public Member Functions | |
CDBAccess (Logger logger) | |
CDBAccess (ORB orb, Logger logger) | |
DAOProxy | createDAO (String curl) |
String[] | getSubNodes (DAOProxy proxy) throws Throwable |
String[] | getSubNodes (DAOProxy proxy, String subnode) throws Throwable |
void | readConfiguration () |
void | destroy () |
void | setDAL (DAL dal) |
DAL | getDAL () |
DAL | connectAndGetDAL () |
Private Member Functions | |
void | internalConnect (DAOProxy proxy) |
void | checkDALConnection () |
void | internalDisconnect (DAOProxy proxy) |
Private Attributes | |
boolean | remoteDAO = true |
String | defaultDAL = null |
DAL | dalReference = null |
ORB | orb = null |
Logger | logger = null |
ChangeListener | changeListener = null |
Static Private Attributes | |
final String | CDBDAL_PREFIX = "DAL" |
final String | CDBDAO_PREFIX = "DAO" |
final String | CDBDAL_DEFAULT_REFERENCE = CDBDAL_PREFIX + ".defaultReference" |
final String | DEFAULT_REFERENCE = "corbaloc::" + ACSPorts.getIP() + ":" + ACSPorts.getCDBPort() + "/CDB" |
final String | CDBDAO_REMOTE = CDBDAO_PREFIX + ".remote" |
|
Constructor used only when setDAL(DAL) is called afterwards.
|
|
Constructor.
|
|
Checks connection status (if already connected) and connects if necessary. |
|
Active (connects if necessary) DAL accessor.
|
|
Performs the connect of the specified DAO.
|
|
Destroys. |
|
DAL accessor.
|
|
Helper method to get all subnodes of the current proxy, removes ".xml" element from the list.
|
|
Helper method to get all subnodes of the current proxy, removes ".xml" element from the list.
|
|
Performs the connect of the specified DAO.
|
|
Sets the DAO of the proxy to
|
|
Interprets the configuration delivered by System JVM properties. |
|
DAL setter.
|
|
The constant denoting the name of default DAL reference property key. |
|
The constant denoting the prefix of the DAL configuration keys. |
|
The constant denoting the prefix of the DAO configuration keys. |
|
The constant denoting the name of default DAO remote switch property key. |
|
Listener for CDB change. |
|
DAL reference. |
|
The constant denoting the default DAL reference (if non is set). |
|
Default DAL CORBA reference (if not authority is specified). |
|
Logger. |
|
CORBA Object Request Broker (ORB) reference. |
|
Switch to turn remote DAO on. |