|
Squid Web Cache master
|
initializes shared memory pages More...
Public Types | |
| typedef void(RegisteredRunner::* | Method) () |
| a pointer to one of the above notification methods | |
Public Member Functions | |
| SharedMemPagesRr () | |
| void | useConfig () override |
| void | create () override |
| called when the runner should create a new memory segment | |
| void | open () override |
| ~SharedMemPagesRr () override | |
| virtual void | bootstrapConfig () |
| 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. | |
Private Attributes | |
| Ipc::Mem::PagePool::Owner * | owner |
|
inherited |
Definition at line 94 of file RunnersRegistry.h.
|
override |
Definition at line 134 of file Pages.cc.
References owner, and ThePagePool.
|
inlinevirtualinherited |
Called right before parsing squid.conf. Meant for initializing/preparing configuration parsing facilities.
Reimplemented in NtlmAuthRr.
Definition at line 46 of file RunnersRegistry.h.
Referenced by SquidMain().
|
inlinevirtualinherited |
Called after finalizeConfig(). Meant for announcing memory reservations before memory is allocated.
Reimplemented in IpcIoRr, and MemStoreRr.
Definition at line 55 of file RunnersRegistry.h.
Referenced by RunConfigUsers().
|
overridevirtual |
Implements Ipc::Mem::RegisteredRunner.
Definition at line 118 of file Pages.cc.
References Ipc::Mem::PageStack::IdForMultipurposePool(), Ipc::Mem::PagePool::Init(), Must, owner, Ipc::Mem::PageLimit(), PagePoolId, and Ipc::Mem::PageSize().
|
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 Auth::CredentialCacheRr, ConnStateData, Dns::ConfigRr, and IdleConnList.
Definition at line 84 of file RunnersRegistry.h.
Referenced by SignalEngine::FinalShutdownRunners().
|
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, MemStoreRr, and SnmpRr.
Definition at line 51 of file RunnersRegistry.h.
Referenced by SquidMain().
|
inlinevirtualinherited |
Definition at line 91 of file RunnersRegistry.h.
Referenced by RunRegistered(), SquidShutdown(), TestRock::tearDown(), and watch_child().
|
overridevirtual |
called when the runner should open a previously created segment, not needed if segments are opened in constructor or init methods
Reimplemented from Ipc::Mem::RegisteredRunner.
Definition at line 128 of file Pages.cc.
References Must, PagePoolId, and ThePagePool.
|
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, HtcpRr, SnmpRr, WccpRr, and Wccp2Rr.
Definition at line 67 of file RunnersRegistry.h.
Referenced by mainReconfigureStart().
|
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, Rock::Rebuild, HtcpRr, SnmpRr, WccpRr, and Wccp2Rr.
Definition at line 78 of file RunnersRegistry.h.
Referenced by SignalEngine::doShutdown().
|
inlinevirtualinherited |
Called after parsing squid.conf during reconfiguration. Meant for adjusting the module state based on configuration changes.
Reimplemented in Auth::CredentialCacheRr, CarpRr, HtcpRr, PeerSourceHashRr, PeerUserHashRr, PeerPoolMgrsRr, SnmpRr, WccpRr, and Wccp2Rr.
Definition at line 71 of file RunnersRegistry.h.
Referenced by mainReconfigureFinish().
|
overridevirtual |
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 109 of file Pages.cc.
References Ipc::Mem::PageLimit(), and Ipc::Mem::RegisteredRunner::useConfig().
|
private |
Definition at line 103 of file Pages.cc.
Referenced by ~SharedMemPagesRr(), and create().