context_storage.cc
Go to the documentation of this file.
41 stream << "Port" << delimiter << "Max mem(KB)" << delimiter << "Cert number" << delimiter << "KB/cert" << delimiter << "Mem used(KB)" << delimiter << "Mem free(KB)" << endString;
44 for (std::map<Ip::Address, LocalContextStorage *>::iterator i = TheGlobalContextStorage.storage.begin(); i != TheGlobalContextStorage.storage.end(); ++i) {
64 RegisterAction("cached_ssl_cert", "Statistic of cached generated ssl certificates", &CertificateStorageAction::Create, 0, 1);
69 for (std::map<Ip::Address, LocalContextStorage *>::iterator i = storage.begin(); i != storage.end(); ++i) {
74void Ssl::GlobalContextStorage::addLocalStorage(Ip::Address const & address, size_t size_of_store)
103 for (std::map<Ip::Address, LocalContextStorage *>::iterator i = storage.begin(); i != storage.end();) {
115 for (std::map<Ip::Address, size_t>::iterator conf_i = configureStorage.begin(); conf_i != configureStorage.end(); ++conf_i ) {
117 storage.insert(std::pair<Ip::Address, LocalContextStorage *>(conf_i->first, new LocalContextStorage(conf_i->second)));
Definition: ClpMap.h:41
size_t entries() const
The number of currently stored entries, including expired ones.
Definition: ClpMap.h:109
uint64_t memoryUsed() const
The current (approximate) memory usage of the map.
Definition: ClpMap.h:106
Definition: Address.h:41
Definition: PackableStream.h:76
Definition: RefCount.h:28
static Pointer Create(const Mgr::Command::Pointer &cmd)
Definition: context_storage.cc:28
CertificateStorageAction(const Mgr::Command::Pointer &cmd)
Definition: context_storage.cc:23
void dump(StoreEntry *sentry) override
Definition: context_storage.cc:33
Class for storing/manipulating LocalContextStorage per local listening address/port.
Definition: context_storage.h:55
void reconfigureStart()
When reconfigring should be called this method.
Definition: context_storage.cc:91
void addLocalStorage(Ip::Address const &address, size_t size_of_store)
Create new SSL context storage for the local listening address/port.
Definition: context_storage.cc:74
GlobalContextStorage()
Definition: context_storage.cc:61
~GlobalContextStorage()
Definition: context_storage.cc:67
LocalContextStorage * getLocalStorage(Ip::Address const &address)
Return the local storage for the given listening address/port.
Definition: context_storage.cc:80
std::map< Ip::Address, LocalContextStorage * > storage
Map for storing all local ip address and their local storages.
Definition: context_storage.h:73
Definition: Store.h:42
int reconfiguring
void RegisterAction(char const *action, char const *desc, OBJH *handler, int pw_req_flag, int atomic)
Definition: Registration.cc:16
GlobalContextStorage TheGlobalContextStorage
Global cache for store all SSL server certificates.
Definition: context_storage.cc:123