27#ifndef UTILS_DAVIXPOOL_H
28#define UTILS_DAVIXPOOL_H
32#include <bsm/audit_errno.h>
39#include "utils/Config.hh"
41#include <davix/davix.hpp>
51 ctx =
new Davix::Context();
52 parms =
new Davix::RequestParams(params);
79 void configure(
const std::string &key,
const std::string &value);
unsigned long long bitmask
typedef for a bitmask (long long)
Definition: logger.h:79
std::string component
typedef for a component name (std:string)
Definition: logger.h:81
Definition: DavixPool.h:71
void configure(const std::string &key, const std::string &value)
void destroy(DavixStuff *)
Destroys an element.
std::string davix_cert_path
Definition: DavixPool.h:86
DavixStuff * create()
Creates an element.
void setRequestParams(const Davix::RequestParams ¶ms)
Davix::RequestParams params_
Definition: DavixPool.h:84
bool isValid(DavixStuff *)
Check it is still valid.
std::string davix_privkey_path
Definition: DavixPool.h:87
Definition: DavixPool.h:90
DavixCtxPool(PoolElementFactory< DavixStuff * > *factory, int n)
Definition: DavixPool.h:92
Definition: DavixPool.h:97
DavixGrabber(DavixCtxPool &pool, bool block=true)
Definition: DavixPool.h:99
Definition: DavixPool.h:48
Davix::RequestParams * parms
Definition: DavixPool.h:65
~DavixStuff()
Definition: DavixPool.h:56
time_t creationtime
Definition: DavixPool.h:63
Davix::Context * ctx
Definition: DavixPool.h:64
DavixStuff(Davix::RequestParams params)
Definition: DavixPool.h:50
Implements a pool of whichever resource.
Definition: poolcontainer.h:38
Definition: poolcontainer.h:20
Convenience class that releases a resource on destruction.
Definition: poolcontainer.h:209
Namespace for the dmlite C++ API.
Definition: authn.h:16
Logger::component davixpoollogname
Logger::bitmask davixpoollogmask