![]() |
ATLAS Offline Software
|
Db objects: DbDomainObj. More...
#include <DbDomainObj.h>
Public Types | |
| typedef DbAccessObj< std::string, DbDatabaseObj > | Base |
| Type definitions. | |
| typedef std::map< std::string, DbDatabaseObj * > | Keys |
| typedef Keys::iterator | iterator |
| typedef Keys::const_iterator | const_iterator |
Public Member Functions | |
| DbDomainObj (DbSession &session, const DbType &typ, DbAccessMode mode=pool::READ) | |
| Constructor. | |
| virtual | ~DbDomainObj () |
| Standard destructor. | |
| IDbDomain * | info () |
| Access to technology dependent implementation. | |
| const IDbDomain * | info () const |
| DbSession & | session () |
| Access session handle. | |
| const DbSession & | session () const |
| void | setAgeLimit (int value) |
| Set the maximal allowed age limit for files in this domain. | |
| int | ageLimit () const |
| Access the maximal age limit. | |
| bool | existsDbase (const std::string &nam) |
| Check for Database existence within domain. | |
| DbStatus | open (DbAccessMode mode) |
| Open domain with possible change of access mode. | |
| DbStatus | open () |
| Open domain in default access mode. | |
| DbStatus | close () |
| Close domain. | |
| DbStatus | ageOpenDbs () |
| Increase the age of all open databases. | |
| DbStatus | closeAgedDbs () |
| Check if databases are present, which aged a lot and need to be closed. | |
| DbStatus | setOption (const DbOption &refOpt) |
| Set domain specific options. | |
| DbStatus | getOption (DbOption &refOpt) const |
| Access domain specific options. | |
| const std::string & | name () const |
| Access the instance name. | |
| void | setName (const std::string &n) |
| Access the instance name. | |
| DbAccessMode | mode () const |
| Access mode. | |
| void | setMode (DbAccessMode m) |
| Set Access mode. | |
| const DbType & | type () const |
| const IOODatabase * | db () const |
| Allow access to the Database implementation. | |
| int | refCount () const |
| Access reference counter. | |
| int | addRef () const |
| Add reference count. | |
| int | release () const |
| Remove reference count. | |
| size_t | size () const |
| Object size. | |
| DbStatus | clearEntries () |
| Object cleanup: remove all entries. | |
| const DbDatabaseObj * | find (const std::string &key) const |
| Find object by key (CONST) | |
| DbStatus | add (const std::string &key, DbDatabaseObj *val) |
| Add entry to container. | |
| DbStatus | remove (const DbDatabaseObj *val) |
| Remove entry from container. | |
| iterator | begin () |
| iterator | end () |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Private Member Functions | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| DbSession | m_session |
| Handle to session. | |
| int | m_maxAge |
| Maximal age of files allowed. | |
| IDbDomain * | m_info |
| Technology dependent stuff. | |
| std::atomic< int > | m_refCount |
| Reference counter. | |
| DbAccessMode | m_mode |
| Access mode. | |
| std::string | m_name |
| Name of the instance. | |
| DbType | m_type |
| Database type. | |
| Keys | m_keys |
| Key entry buffer. | |
| IOODatabase * | m_pool |
| Pointer to specific pool implementation. | |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) | |
Db objects: DbDomainObj.
Description: Implementation independent part of a Database domain object objects.
Definition at line 40 of file DbDomainObj.h.
|
inherited |
Type definitions.
Definition at line 50 of file DbAccessObj.h.
|
inherited |
Definition at line 53 of file DbAccessObj.h.
|
inherited |
Definition at line 52 of file DbAccessObj.h.
|
inherited |
Definition at line 51 of file DbAccessObj.h.
| pool::DbDomainObj::DbDomainObj | ( | DbSession & | session, |
| const DbType & | typ, | ||
| DbAccessMode | mode = pool::READ ) |
Constructor.
|
virtual |
Standard destructor.
|
inlineinherited |
Add entry to container.
Definition at line 142 of file DbAccessObj.h.
|
inlineinherited |
Add reference count.
Definition at line 91 of file DbAccessObj.h.
|
inline |
| DbStatus pool::DbDomainObj::ageOpenDbs | ( | ) |
Increase the age of all open databases.
|
inlineinherited |
Definition at line 163 of file DbAccessObj.h.
|
inlineinherited |
| DbStatus pool::DbDomainObj::close | ( | ) |
Close domain.
| DbStatus pool::DbDomainObj::closeAgedDbs | ( | ) |
Check if databases are present, which aged a lot and need to be closed.
|
inlineinherited |
|
inlineinherited |
Definition at line 165 of file DbAccessObj.h.
| bool pool::DbDomainObj::existsDbase | ( | const std::string & | nam | ) |
Check for Database existence within domain.
|
inlineinherited |
Find object by key (CONST)
Definition at line 132 of file DbAccessObj.h.
Access domain specific options.
| refOpt | [IN] Reference to option object |
|
inline |
|
inline |
Definition at line 57 of file DbDomainObj.h.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inlineinherited |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 163 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 178 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
inlineinherited |
| DbStatus pool::DbDomainObj::open | ( | ) |
Open domain in default access mode.
| DbStatus pool::DbDomainObj::open | ( | DbAccessMode | mode | ) |
Open domain with possible change of access mode.
|
inlineinherited |
|
inlineinherited |
Remove reference count.
Definition at line 103 of file DbAccessObj.h.
|
inlineinherited |
|
inline |
|
inline |
Definition at line 60 of file DbDomainObj.h.
|
inline |
Set the maximal allowed age limit for files in this domain.
Definition at line 62 of file DbDomainObj.h.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 84 of file DbAccessObj.h.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
mutableprivateinherited |
|
private |
Technology dependent stuff.
Definition at line 47 of file DbDomainObj.h.
|
privateinherited |
Key entry buffer.
Definition at line 64 of file DbAccessObj.h.
|
mutableprivateinherited |
|
private |
Maximal age of files allowed.
Definition at line 45 of file DbDomainObj.h.
|
privateinherited |
Access mode.
Definition at line 58 of file DbAccessObj.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Name of the instance.
Definition at line 60 of file DbAccessObj.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
privateinherited |
Pointer to specific pool implementation.
Definition at line 66 of file DbAccessObj.h.
|
mutableprivateinherited |
Reference counter.
Definition at line 56 of file DbAccessObj.h.
|
private |
Handle to session.
Definition at line 43 of file DbDomainObj.h.
|
privateinherited |
Database type.
Definition at line 62 of file DbAccessObj.h.