#include <pconn.h>

Collaboration diagram for PconnModule:

Public Member Functions

 PconnModule ()
 
void registerWithCacheManager (void)
 
void add (PconnPool *)
 
void remove (PconnPool *)
 unregister and forget about this pool object More...
 
void dump (std::ostream &yaml)
 

Static Public Member Functions

static PconnModuleGetInstance ()
 
static void DumpWrapper (StoreEntry *e)
 

Private Types

typedef std::set< PconnPool * > Pools
 unordered PconnPool collection More...
 

Private Attributes

Pools pools
 all live pools More...
 

Static Private Attributes

static PconnModuleinstance = nullptr
 

Detailed Description

The global registry of persistent connection pools.

Definition at line 170 of file pconn.h.

Member Typedef Documentation

◆ Pools

typedef std::set<PconnPool*> PconnModule::Pools
private

Definition at line 190 of file pconn.h.

Constructor & Destructor Documentation

◆ PconnModule()

PconnModule::PconnModule ( )

Definition at line 559 of file pconn.cc.

References registerWithCacheManager().

Referenced by GetInstance().

Member Function Documentation

◆ add()

void PconnModule::add ( PconnPool aPool)

Definition at line 583 of file pconn.cc.

References pools.

Referenced by PconnPool::PconnPool().

◆ dump()

void PconnModule::dump ( std::ostream &  yaml)

Definition at line 595 of file pconn.cc.

References pools.

Referenced by DumpWrapper().

◆ DumpWrapper()

void PconnModule::DumpWrapper ( StoreEntry e)
static

A thunk to the still C like CacheManager callback api.

Definition at line 602 of file pconn.cc.

References dump(), and GetInstance().

Referenced by registerWithCacheManager().

◆ GetInstance()

PconnModule * PconnModule::GetInstance ( )
static

the module is a singleton until we have instance based cachemanager management

Definition at line 565 of file pconn.cc.

References instance, and PconnModule().

Referenced by DumpWrapper(), PconnPool::PconnPool(), and PconnPool::~PconnPool().

◆ registerWithCacheManager()

void PconnModule::registerWithCacheManager ( void  )

Definition at line 574 of file pconn.cc.

References DumpWrapper(), Mgr::no, Mgr::RegisterAction(), Mgr::yaml, and Mgr::yes.

Referenced by PconnModule().

◆ remove()

void PconnModule::remove ( PconnPool aPool)

Definition at line 589 of file pconn.cc.

References pools.

Referenced by PconnPool::~PconnPool().

Member Data Documentation

◆ instance

PconnModule * PconnModule::instance = nullptr
staticprivate

Definition at line 193 of file pconn.h.

Referenced by GetInstance().

◆ pools

Pools PconnModule::pools
private

Definition at line 191 of file pconn.h.

Referenced by add(), dump(), and remove().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous