Inheritance diagram for IpcIoRr:
Collaboration diagram for IpcIoRr:

Public Types

typedef void(RegisteredRunner::* Method )()
 a pointer to one of the above notification methods More...
 

Public Member Functions

 IpcIoRr ()
 
virtual ~IpcIoRr ()
 
virtual void claimMemoryNeeds ()
 
virtual void useConfig ()
 
virtual void finalizeConfig ()
 
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::FewToFewBiQueue::Ownerowner
 

Detailed Description

reports our needs for shared memory pages to Ipc::Mem::Pages and initializes shared memory segments used by IpcIoFile

Definition at line 925 of file IpcIoFile.cc.

Member Typedef Documentation

typedef void(RegisteredRunner::* RegisteredRunner::Method)()
inherited

Definition at line 90 of file RunnersRegistry.h.

Constructor & Destructor Documentation

IpcIoRr::IpcIoRr ( )
inline

Definition at line 929 of file IpcIoFile.cc.

IpcIoRr::~IpcIoRr ( )
virtual

Definition at line 969 of file IpcIoFile.cc.

References owner.

Member Function Documentation

void IpcIoRr::claimMemoryNeeds ( )
virtual

Called after finalizeConfig(). Meant for announcing memory reservations before memory is allocated.

Reimplemented from RegisteredRunner.

Definition at line 944 of file IpcIoFile.cc.

References SquidConfig::cacheSwap, Config, Ipc::Mem::PageId::ioPage, Ipc::FewToFewBiQueue::MaxItemsCount(), Store::DiskConfig::n_strands, Ipc::Mem::NotePageNeed(), QueueCapacity, and SquidConfig::workers.

void IpcIoRr::create ( )
protectedvirtual
virtual void RegisteredRunner::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().

virtual void RegisteredRunner::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().

virtual void RegisteredRunner::finishShutdown ( )
inlinevirtualinherited

Definition at line 87 of file RunnersRegistry.h.

Referenced by RunRegistered(), SquidShutdown(), testRock::tearDown(), and watch_child().

virtual void Ipc::Mem::RegisteredRunner::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.

Definition at line 93 of file Segment.h.

virtual void RegisteredRunner::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().

virtual void RegisteredRunner::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().

virtual void RegisteredRunner::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().

void RegisteredRunner::useConfig ( )
virtualinherited

Called after claimMemoryNeeds(). Meant for activating modules and features using a finalized configuration with known memory requirements.

Reimplemented from RegisteredRunner.

Reimplemented in MemStoreRr, SharedSessionCacheRr, TransientsRr, and SharedMemPagesRr.

Definition at line 376 of file Segment.cc.

References IamMasterProcess(), IamWorkerProcess(), and InDaemonMode().

Referenced by testRock::setUp(), SharedMemPagesRr::useConfig(), TransientsRr::useConfig(), SharedSessionCacheRr::useConfig(), and MemStoreRr::useConfig().

Member Data Documentation

Ipc::FewToFewBiQueue::Owner* IpcIoRr::owner
private

Definition at line 938 of file IpcIoFile.cc.

Referenced by create(), and ~IpcIoRr().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors