initializes shared memory segments used by MemStore More...


Public Types | |
typedef void(RegisteredRunner::* | Method) () |
a pointer to one of the above notification methods More... | |
Public Member Functions | |
SharedSessionCacheRr () | |
virtual void | useConfig () |
virtual | ~SharedSessionCacheRr () |
virtual void | finalizeConfig () |
virtual void | claimMemoryNeeds () |
virtual void | startReconfigure () |
virtual void | syncConfig () |
virtual void | startShutdown () |
virtual void | endingShutdown () |
virtual void | finishShutdown () |
Meant for cleanup of services needed by the already destroyed objects. More... | |
Protected Member Functions | |
virtual void | create () |
called when the runner should create a new memory segment More... | |
virtual void | open () |
Private Attributes | |
Ipc::MemMap::Owner * | owner |
Detailed Description
Definition at line 409 of file Session.cc.
Member Typedef Documentation
◆ Method
|
inherited |
Definition at line 90 of file RunnersRegistry.h.
Constructor & Destructor Documentation
◆ SharedSessionCacheRr()
|
inline |
Definition at line 413 of file Session.cc.
References create(), useConfig(), and ~SharedSessionCacheRr().
◆ ~SharedSessionCacheRr()
|
virtual |
Member Function Documentation
◆ claimMemoryNeeds()
|
inlinevirtualinherited |
Called after finalizeConfig(). Meant for announcing memory reservations before memory is allocated.
Reimplemented in MemStoreRr, and IpcIoRr.
Definition at line 51 of file RunnersRegistry.h.
Referenced by StartUsingConfig().
◆ create()
|
protectedvirtual |
Implements Ipc::Mem::RegisteredRunner.
Definition at line 439 of file Session.cc.
References Config, Ipc::MemMap::Init(), isTlsServer(), owner, SessionCacheName, SquidConfig::sessionCacheSize, and SquidConfig::SSL.
Referenced by SharedSessionCacheRr().
◆ endingShutdown()
|
inlinevirtualinherited |
Called after shutdown_lifetime grace period ends and before stopping the main loop. At least one main loop iteration is guaranteed after this call. Meant for cleanup and state saving that may require other modules.
Reimplemented in ConnStateData, Dns::ConfigRr, IdleConnList, and Auth::CredentialCacheRr.
Definition at line 80 of file RunnersRegistry.h.
Referenced by SignalEngine::FinalShutdownRunners().
◆ finalizeConfig()
|
inlinevirtualinherited |
Called after parsing squid.conf. Meant for setting configuration options that depend on other configuration options and were not explicitly configured.
Reimplemented in sslBumpCfgRr, and MemStoreRr.
Definition at line 47 of file RunnersRegistry.h.
Referenced by SquidMain().
◆ finishShutdown()
|
inlinevirtualinherited |
Definition at line 87 of file RunnersRegistry.h.
Referenced by RunRegistered(), SquidShutdown(), testRock::tearDown(), and watch_child().
◆ open()
|
inlineprotectedvirtualinherited |
called when the runner should open a previously created segment, not needed if segments are opened in constructor or init methods
Reimplemented in CollapsedForwardingRr, and SharedMemPagesRr.
◆ startReconfigure()
|
inlinevirtualinherited |
Called after receiving a reconfigure request and before parsing squid.conf. Meant for modules that need to prepare for their configuration being changed [outside their control]. The changes end with the syncConfig() event.
Reimplemented in Dns::ConfigRr.
Definition at line 63 of file RunnersRegistry.h.
Referenced by mainReconfigureStart().
◆ startShutdown()
|
inlinevirtualinherited |
Called after receiving a shutdown request and before stopping the main loop. At least one main loop iteration is guaranteed after this call. Meant for cleanup and state saving that may require other modules.
Reimplemented in ConnStateData.
Definition at line 74 of file RunnersRegistry.h.
Referenced by SignalEngine::doShutdown().
◆ syncConfig()
|
inlinevirtualinherited |
Called after parsing squid.conf during reconfiguration. Meant for adjusting the module state based on configuration changes.
Reimplemented in PeerPoolMgrsRr, and Auth::CredentialCacheRr.
Definition at line 67 of file RunnersRegistry.h.
Referenced by mainReconfigureFinish().
◆ useConfig()
|
virtual |
Called after claimMemoryNeeds(). Meant for activating modules and features using a finalized configuration with known memory requirements.
Reimplemented from Ipc::Mem::RegisteredRunner.
Definition at line 427 of file Session.cc.
References initializeSessionCache(), isTlsServer(), and Ipc::Mem::RegisteredRunner::useConfig().
Referenced by SharedSessionCacheRr().
Member Data Documentation
◆ owner
|
private |
Definition at line 421 of file Session.cc.
Referenced by create(), and ~SharedSessionCacheRr().
The documentation for this class was generated from the following file:
- src/security/Session.cc