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
#ifndef STORAGESVC_DBDOMAINOBJ_H
5
#define STORAGESVC_DBDOMAINOBJ_H 1
6
7
#include "
PersistentDataModel/Token.h
"
8
#include "
StorageSvc/DbPrint.h
"
9
#include "
DbAccessObj.h
"
10
11
class
ITechFactory
;
12
13
// Forward declarations
14
class
DbDatabaseObj
;
15
class
DbOption
;
16
class
ITechDomain
;
17
25
class
DbDomainObj
:
public
DbAccessObj
<std::string, DbDatabaseObj >,
public
APRMessaging
{
26
private
:
28
int
m_maxAge
;
30
ITechDomain
*
m_info
;
31
public
:
33
DbDomainObj
(
ITechFactory
* imp,
const
DbType
& typ, Io::IoFlag
mode
= Io::READ);
35
virtual
~DbDomainObj
();
37
ITechDomain
*
info
() {
return
m_info
; }
38
const
ITechDomain
*
info
()
const
{
return
m_info
; }
40
void
setAgeLimit
(
int
value) {
m_maxAge
= value; }
42
int
ageLimit
()
const
{
return
m_maxAge
; }
44
StatusCode
open
(Io::IoFlag
mode
);
46
StatusCode
open
();
48
StatusCode
close
();
50
StatusCode
ageOpenDbs
();
52
StatusCode
closeAgedDbs
();
54
58
StatusCode
setOption
(
const
DbOption
& refOpt);
60
64
StatusCode
getOption
(
DbOption
& refOpt)
const
;
65
};
66
67
#endif
DbAccessObj.h
DbPrint.h
Token.h
This file contains the class definition for the Token class (migrated from POOL).
APRMessaging::APRMessaging
APRMessaging(const std::string &name)
DbAccessObj< std::string, DbDatabaseObj >::mode
Io::IoFlag mode() const
Definition
DbAccessObj.h:55
DbAccessObj
Description:
Definition
DbAccessObj.h:104
DbDatabaseObj
Description: Technology independent part of a Database object implementation.
Definition
DbDatabaseObj.h:27
DbDomainObj::setOption
StatusCode setOption(const DbOption &refOpt)
Set domain specific options.
DbDomainObj::info
ITechDomain * info()
Access to technology dependent implementation.
Definition
DbDomainObj.h:37
DbDomainObj::info
const ITechDomain * info() const
Definition
DbDomainObj.h:38
DbDomainObj::setAgeLimit
void setAgeLimit(int value)
Set the maximal allowed age limit for files in this domain.
Definition
DbDomainObj.h:40
DbDomainObj::ageLimit
int ageLimit() const
Access the maximal age limit.
Definition
DbDomainObj.h:42
DbDomainObj::open
StatusCode open()
Open domain in default access mode.
DbDomainObj::open
StatusCode open(Io::IoFlag mode)
Open domain with possible change of access mode.
DbDomainObj::DbDomainObj
DbDomainObj(ITechFactory *imp, const DbType &typ, Io::IoFlag mode=Io::READ)
Constructor.
DbDomainObj::close
StatusCode close()
Close domain.
DbDomainObj::ageOpenDbs
StatusCode ageOpenDbs()
Increase the age of all open databases.
DbDomainObj::~DbDomainObj
virtual ~DbDomainObj()
Standard destructor.
DbDomainObj::m_maxAge
int m_maxAge
Maximal age of files allowed.
Definition
DbDomainObj.h:28
DbDomainObj::m_info
ITechDomain * m_info
Technology dependent stuff.
Definition
DbDomainObj.h:30
DbDomainObj::closeAgedDbs
StatusCode closeAgedDbs()
Check if databases are present, which aged a lot and need to be closed.
DbDomainObj::getOption
StatusCode getOption(DbOption &refOpt) const
Access domain specific options.
DbOption
Description: Definition an option to be supplied to database objects.
Definition
DbOption.h:22
DbType
Keeps information about storage technology.
Definition
DbType.h:15
ITechDomain
Definition
ITechDomain.h:23
ITechFactory
Definition
ITechFactory.h:27
Generated on
for ATLAS Offline Software by
1.17.0