ATLAS Offline Software
Loading...
Searching...
No Matches
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
9#include "DbAccessObj.h"
10
11class ITechFactory;
12
13// Forward declarations
14class DbDatabaseObj;
15class DbOption;
16class ITechDomain;
17
25class DbDomainObj : public DbAccessObj<std::string, DbDatabaseObj >, public APRMessaging {
26 private:
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
This file contains the class definition for the Token class (migrated from POOL).
APRMessaging(const std::string &name)
Description:
Description: Technology independent part of a Database object implementation.
StatusCode setOption(const DbOption &refOpt)
Set domain specific options.
ITechDomain * info()
Access to technology dependent implementation.
Definition DbDomainObj.h:37
const ITechDomain * info() const
Definition DbDomainObj.h:38
void setAgeLimit(int value)
Set the maximal allowed age limit for files in this domain.
Definition DbDomainObj.h:40
int ageLimit() const
Access the maximal age limit.
Definition DbDomainObj.h:42
StatusCode open()
Open domain in default access mode.
StatusCode open(Io::IoFlag mode)
Open domain with possible change of access mode.
DbDomainObj(ITechFactory *imp, const DbType &typ, Io::IoFlag mode=Io::READ)
Constructor.
StatusCode close()
Close domain.
StatusCode ageOpenDbs()
Increase the age of all open databases.
virtual ~DbDomainObj()
Standard destructor.
int m_maxAge
Maximal age of files allowed.
Definition DbDomainObj.h:28
ITechDomain * m_info
Technology dependent stuff.
Definition DbDomainObj.h:30
StatusCode closeAgedDbs()
Check if databases are present, which aged a lot and need to be closed.
StatusCode getOption(DbOption &refOpt) const
Access domain specific options.
Description: Definition an option to be supplied to database objects.
Definition DbOption.h:22
Keeps information about storage technology.
Definition DbType.h:15