A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/bdb__env_8hpp_source.html below:

NCBI C++ ToolKit: include/db/bdb/bdb_env.hpp Source File

65

eRunRecovery = (1 << 1),

66

eRunRecoveryFatal = (1 << 2),

95  void

Open(

const string

& db_home,

int flags

);

100  void

OpenWithLocks(

const string

& db_home);

103  void

OpenPrivate(

const string

& db_home);

108  void

OpenConcurrentDB(

const string

& db_home);

116  void

OpenWithTrans(

const string

& db_home,

TEnvOpenFlags

opt = 0);

124  void

OpenErrFile(

const string

&

file_name

);

127  void

SetErrPrefix(

const string

& s);

133

eInspectTransactions,

136

eAssumeNoTransactions

146  void

JoinEnv(

const string

& db_home,

147

TEnvOpenFlags opt = 0,

148

ETransactionDiscovery trans_test = eTestTransactions);

156  void

SetCacheSize(

Uint8

cache_size,

170  bool

IsTransactional()

const

;

173  void

TransactionCheckpoint();

176  void

ForceTransactionCheckpoint();

179  void

SetDirectDB(

bool

on_off);

182  void

SetDirectLog(

bool

on_off);

186  void

SetLogAutoRemove(

bool

on_off);

189  void

SetLogFileMax(

unsigned int

lg_max);

192  void

SetLogRegionMax(

unsigned size

);

195  void

SetLogBSize(

unsigned

lg_bsize);

198  void

SetLogInMemory(

bool

on_off);

202  void

SetLogDir(

const string

& log_dir);

209  void

SetMaxLocks(

unsigned

locks);

212  unsigned

GetMaxLocks();

215  void

SetMaxLockObjects(

unsigned

lock_obj_max);

218  void

SetMaxLockers(

unsigned

max_lockers);

227  void

SetLockTimeout(

unsigned

timeout);

230  void

SetTransactionTimeout(

unsigned

timeout);

234  void

SetTransactionMax(

unsigned

tx_max);

238  void

SetTasSpins(

unsigned

tas_spins);

241  void

MutexSetMax(

unsigned max

);

244  unsigned

MutexGetMax();

247  void

MutexSetIncrement(

unsigned

inc);

249  unsigned

MutexGetIncrement();

252  unsigned

MutexGetFree();

278  void

LsnResetForMemLog(

const char

*

file_name

);

305  void

MempTrickle(

int

percent,

int

*nwrotep);

317  void

SetMpMaxWrite(

int

maxwrite,

int

maxwrite_sleep);

320  void

SetMpMmapSize(

size_t

map_size);

323  size_t

GetMpMmapSize();

326  const string

&

GetPath

()

const

{

return

m_HomePath; }

359  void

SetLkDetect(EDeadLockDetect detect_mode);

362  void

DeadLockDetect();

372

eBackground_MempTrickle = (1 << 0),

373

eBackground_Checkpoint = (1 << 1),

374

eBackground_DeadLockDetect = (1 << 2),

400  unsigned

thread_delay = 30,

401  int

memp_trickle = 0,

402  unsigned

err_max = 0);

405  void

StopBackgroundWriterThread();

408  void

RunCheckpointThread(

unsigned

thread_delay = 30,

409  int

memp_trickle = 0,

410  unsigned

err_max = 0);

413  void

StopCheckpointThread();

437  unsigned

x_GetDeadLockDetect(EDeadLockDetect detect_mode);

Wrapper around Berkeley DB transaction structure.

Transaction checkpoint / memptrickle thread.

BDB environment object a collection including support for some or all of caching, locking,...

std::ofstream out("events_result.xml")

main entry point for tests

ETransSync

Enum controls if transaction is synchronous or not.

void BDB_RecoverEnv(const string &path, bool fatal_recover)

Run Berkeley DB recovery in private environment.

bool m_Transactional

TRUE if transactional.

ETransactionDiscovery

Modes to test if environment is transactional or not.

EEnvType

Environment types.

const string & GetPath() const

return the path to the environment

shared_ptr< bool > m_StopThreadFlag

void EnableCheckPoint(bool on_off)

When OFF calls to TransactionCheckpoint() will be ignored.

CBDB_Env & operator=(const CBDB_Env &)

void SetMonitor(IServer_Monitor *monitor)

Set monitor (class does NOT take ownership)

IServer_Monitor * m_Monitor

Monitoring interface.

EDeadLockDetect m_DeadLockMode

unsigned m_CheckPointKB

Checkpoint KBytes.

unsigned int TEnvOpenFlags

OR-ed combination of EEnvOptions.

EBackgroundWork

Background work flags.

unsigned m_MaxLockObjects

unsigned TBackgroundFlags

Background work flags (combination of EBackgroundWork)

CBDB_Transaction::ETransSync m_TransSync

DB_ENV * GetEnv()

Return underlying DB_ENV structure pointer for low level access.

CBDB_Env(const CBDB_Env &)

forbidden

IServer_Monitor * GetMonitor()

Get monitor.

CBDB_Transaction::ETransSync GetTransactionSync() const

Get default syncronicity setting.

CRef< CBDB_CheckPointThread > m_CheckThread

Checkpoint thread.

void SetCheckPointMin(unsigned m)

If the m parameter is non-zero, a checkpoint will be done if more than min minutes have passed since ...

void SetCheckPointKB(unsigned kb)

If the kb parameter is non-zero, a checkpoint will be done if more than kbyte kilobytes of log data h...

bool m_CheckPointEnable

Checkpoint enabled.

EDeadLockDetect

Deadlock detection modes.

unsigned m_CheckPointMin

Checkpoint minutes.

bool IsLogInMemory() const

@ eTestTransactions

Do a test to discover transactions.

@ eAssumeTransactions

Assume env. is transactional.

@ eDeadLock_MaxLocks

Abort trans with the greatest number of locks.

@ eDeadLock_MinWrite

Abort trans with the fewest write locks.

@ eDeadLock_Oldest

Abort the oldest trans.

@ eDeadLock_Default

Default deadlock detector.

@ eDeadLock_Disable

No deadlock detection performed.

@ eDeadLock_Random

Abort a random trans involved in the deadlock.

uint64_t Uint8

8-byte (64-bit) unsigned integer

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

IO_PREFIX::ostream CNcbiOstream

Portable alias for ostream.

const struct ncbi::grid::netcache::search::fields::SIZE size

static SERV_ITER x_Open(const char *service, int ismask, TSERV_Type types, unsigned int preferred_host, unsigned short preferred_port, double preference, const SConnNetInfo *net_info, SSERV_InfoCPtr skip[], size_t n_skip, int external, const char *arg, const char *val, SSERV_Info **info, HOST_INFO *host_info)

Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.

Base interface for monitoring.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4