initializes shared queue used by CollapsedForwarding More...

Inheritance diagram for CollapsedForwardingRr:
Collaboration diagram for CollapsedForwardingRr:

Public Types

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

Public Member Functions

 CollapsedForwardingRr ()
 
virtual ~CollapsedForwardingRr ()
 
virtual void useConfig ()
 
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. More...
 

Protected Member Functions

virtual void create ()
 called when the runner should create a new memory segment More...
 
virtual void open ()
 

Private Attributes

Ipc::MultiQueue::Ownerowner
 

Detailed Description

Definition at line 174 of file CollapsedForwarding.cc.

Member Typedef Documentation

◆ Method

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

Definition at line 94 of file RunnersRegistry.h.

Constructor & Destructor Documentation

◆ CollapsedForwardingRr()

CollapsedForwardingRr::CollapsedForwardingRr ( )
inline

Definition at line 178 of file CollapsedForwarding.cc.

◆ ~CollapsedForwardingRr()

CollapsedForwardingRr::~CollapsedForwardingRr ( )
virtual

Definition at line 204 of file CollapsedForwarding.cc.

References owner.

Member Function Documentation

◆ bootstrapConfig()

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

◆ claimMemoryNeeds()

virtual void RegisteredRunner::claimMemoryNeeds ( )
inlinevirtualinherited

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

Reimplemented in MemStoreRr, and IpcIoRr.

Definition at line 55 of file RunnersRegistry.h.

Referenced by RunConfigUsers().

◆ create()

void CollapsedForwardingRr::create ( )
protectedvirtual

◆ endingShutdown()

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 Dns::ConfigRr, Auth::CredentialCacheRr, IdleConnList, and ConnStateData.

Definition at line 84 of file RunnersRegistry.h.

Referenced by SignalEngine::FinalShutdownRunners().

◆ finalizeConfig()

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 MemStoreRr, and sslBumpCfgRr.

Definition at line 51 of file RunnersRegistry.h.

Referenced by SquidMain().

◆ finishShutdown()

virtual void RegisteredRunner::finishShutdown ( )
inlinevirtualinherited

Definition at line 91 of file RunnersRegistry.h.

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

◆ open()

void CollapsedForwardingRr::open ( )
protectedvirtual

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 199 of file CollapsedForwarding.cc.

References CollapsedForwarding::Init().

◆ startReconfigure()

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 67 of file RunnersRegistry.h.

Referenced by mainReconfigureStart().

◆ startShutdown()

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 Rock::Rebuild, and ConnStateData.

Definition at line 78 of file RunnersRegistry.h.

Referenced by SignalEngine::doShutdown().

◆ syncConfig()

virtual void RegisteredRunner::syncConfig ( )
inlinevirtualinherited

Called after parsing squid.conf during reconfiguration. Meant for adjusting the module state based on configuration changes.

Reimplemented in Auth::CredentialCacheRr, and PeerPoolMgrsRr.

Definition at line 71 of file RunnersRegistry.h.

Referenced by mainReconfigureFinish().

◆ useConfig()

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 TransientsRr, SharedSessionCacheRr, MemStoreRr, and SharedMemPagesRr.

Definition at line 377 of file Segment.cc.

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

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

Member Data Documentation

◆ owner

Ipc::MultiQueue::Owner* CollapsedForwardingRr::owner
private

Definition at line 186 of file CollapsedForwarding.cc.

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


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors