ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
APR
StorageSvc
src
DbDomainObj.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//====================================================================
6
// DbDomainObj object definition
7
//--------------------------------------------------------------------
8
//
9
// Package : StorageSvc (The POOL project)
10
// @author M.Frank
11
//====================================================================
12
#ifndef POOL_DBDOMAINOBJ_H
13
#define POOL_DBDOMAINOBJ_H 1
14
15
// Framework include files
16
#include "
PersistentDataModel/Token.h
"
17
#include "
StorageSvc/DbAccessObj.h
"
18
#include "
StorageSvc/DbPrint.h
"
19
20
/*
21
* POOL namespace declaration
22
*/
23
namespace
pool
{
24
25
// Forward declarations
26
class
IOODatabase
;
27
class
DbDatabaseObj
;
28
class
DbOption
;
29
class
IDbDomain
;
30
40
class
DbDomainObj
:
public
DbAccessObj
<std::string, DbDatabaseObj >,
public
APRMessaging
{
41
private
:
43
int
m_maxAge
;
45
IDbDomain
*
m_info
;
46
public
:
48
DbDomainObj
(
IOODatabase
* imp,
const
DbType
& typ, Io::IoFlag
mode
= Io::READ);
50
virtual
~DbDomainObj
();
52
IDbDomain
*
info
() {
return
m_info
; }
53
const
IDbDomain
*
info
()
const
{
return
m_info
; }
55
void
setAgeLimit
(
int
value) {
m_maxAge
= value; }
57
int
ageLimit
()
const
{
return
m_maxAge
; }
59
bool
existsDbase
(
const
std::string& nam);
61
StatusCode
open
(Io::IoFlag
mode
);
63
StatusCode
open
();
65
StatusCode
close
();
67
StatusCode
ageOpenDbs
();
69
StatusCode
closeAgedDbs
();
71
75
StatusCode
setOption
(
const
DbOption
& refOpt);
77
81
StatusCode
getOption
(
DbOption
& refOpt)
const
;
82
};
83
}
// End namespace pool
84
#endif
// POOL_DBDOMAINOBJ_H
DbAccessObj.h
DbPrint.h
Token.h
This file contains the class definition for the Token class (migrated from POOL).
pool::APRMessaging::APRMessaging
APRMessaging(const std::string &name)
pool::DbAccessObj< std::string, DbDatabaseObj >::mode
Io::IoFlag mode() const
Definition
DbAccessObj.h:80
pool::DbAccessObj< std::string, DbDatabaseObj >::DbAccessObj
DbAccessObj(const std::string &n, Io::IoFlag m, const DbType &t, IOODatabase *s=0)
Definition
DbAccessObj.h:70
pool::DbDatabaseObj
Description:
Definition
DbDatabaseObj.h:47
pool::DbDomainObj::open
StatusCode open(Io::IoFlag mode)
Open domain with possible change of access mode.
pool::DbDomainObj::DbDomainObj
DbDomainObj(IOODatabase *imp, const DbType &typ, Io::IoFlag mode=Io::READ)
Constructor.
pool::DbDomainObj::existsDbase
bool existsDbase(const std::string &nam)
Check for Database existence within domain.
pool::DbDomainObj::open
StatusCode open()
Open domain in default access mode.
pool::DbDomainObj::setOption
StatusCode setOption(const DbOption &refOpt)
Set domain specific options.
pool::DbDomainObj::info
IDbDomain * info()
Access to technology dependent implementation.
Definition
DbDomainObj.h:52
pool::DbDomainObj::m_info
IDbDomain * m_info
Technology dependent stuff.
Definition
DbDomainObj.h:45
pool::DbDomainObj::~DbDomainObj
virtual ~DbDomainObj()
Standard destructor.
pool::DbDomainObj::close
StatusCode close()
Close domain.
pool::DbDomainObj::ageLimit
int ageLimit() const
Access the maximal age limit.
Definition
DbDomainObj.h:57
pool::DbDomainObj::ageOpenDbs
StatusCode ageOpenDbs()
Increase the age of all open databases.
pool::DbDomainObj::setAgeLimit
void setAgeLimit(int value)
Set the maximal allowed age limit for files in this domain.
Definition
DbDomainObj.h:55
pool::DbDomainObj::closeAgedDbs
StatusCode closeAgedDbs()
Check if databases are present, which aged a lot and need to be closed.
pool::DbDomainObj::m_maxAge
int m_maxAge
Maximal age of files allowed.
Definition
DbDomainObj.h:43
pool::DbDomainObj::getOption
StatusCode getOption(DbOption &refOpt) const
Access domain specific options.
pool::DbDomainObj::info
const IDbDomain * info() const
Definition
DbDomainObj.h:53
pool::DbOption
Description: Definition an option to be supplied to database objects.
Definition
DbOption.h:36
pool::DbType
Definition
DbType.h:30
pool::IDbDomain
IDbDomain interface.
Definition
IDbDomain.h:42
pool::IOODatabase
Definition
IOODatabase.h:50
pool
Framework include files.
Definition
libname.h:15
Generated on
for ATLAS Offline Software by
1.17.0