Interface for those who need a list of peers to forward a request to. More...
#include <PeerSelectState.h>


| Public Member Functions | |
| ~PeerSelectionInitiator () override=default | |
| virtual void | noteDestination (Comm::ConnectionPointer path)=0 | 
| called when a new unique destination has been found  More... | |
| virtual void | noteDestinationsEnd (ErrorState *error)=0 | 
| void | startSelectingDestinations (HttpRequest *request, const AccessLogEntry::Pointer &ale, StoreEntry *entry) | 
| virtual void * | toCbdata ()=0 | 
| Public Attributes | |
| bool | subscribed = false | 
| whether noteDestination() and noteDestinationsEnd() calls are allowed  More... | |
| Private Member Functions | |
| virtual void | finalizedInCbdataChild ()=0 | 
| hack: ensure CBDATA_CHILD() after a toCbdata()-defining CBDATA_INTERMEDIATE()  More... | |
Detailed Description
Definition at line 32 of file PeerSelectState.h.
Constructor & Destructor Documentation
◆ ~PeerSelectionInitiator()
| 
 | overridedefault | 
Member Function Documentation
◆ finalizedInCbdataChild()
| 
 | privatepure virtualinherited | 
◆ noteDestination()
| 
 | pure virtual | 
Implemented in TunnelStateData, and FwdState.
◆ noteDestinationsEnd()
| 
 | pure virtual | 
called when there will be no more noteDestination() calls
- Parameters
- 
  error is a possible reason why no destinations were found; it is guaranteed to be nil if there was at least one noteDestination() call 
Implemented in TunnelStateData, and FwdState.
◆ startSelectingDestinations()
| void PeerSelectionInitiator::startSelectingDestinations | ( | HttpRequest * | request, | 
| const AccessLogEntry::Pointer & | ale, | ||
| StoreEntry * | entry | ||
| ) | 
Initiates asynchronous peer selection that eventually results in zero or more noteDestination() calls and exactly one noteDestinationsEnd() call.
Definition at line 330 of file peer_select.cc.
References peerSelect(), and subscribed.
Referenced by FwdState::start(), and tunnelStart().
◆ toCbdata()
| 
 | pure virtualinherited | 
Referenced by AsyncJob::callException(), and AsyncJob::callStart().
Member Data Documentation
◆ subscribed
| bool PeerSelectionInitiator::subscribed = false | 
Definition at line 46 of file PeerSelectState.h.
Referenced by TunnelStateData::commitToServer(), FwdState::noteDestinationsEnd(), TunnelStateData::noteDestinationsEnd(), FwdState::reforward(), TunnelStateData::retryOrBail(), TunnelStateData::sendError(), startSelectingDestinations(), FwdState::stopAndDestroy(), and FwdState::useDestinations().
The documentation for this class was generated from the following files:
- src/PeerSelectState.h
- src/peer_select.cc
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products
