delay_pools.cc
Go to the documentation of this file.
547 storeAppendPrintf(sentry, "Pool: %d\n\tClass: " SQUIDSBUFPH "\n\n", i + 1, SQUIDSBUFPRINT(DelayPools::delay_data[i].pool->classTypeLabel()));
573 debugs(3, DBG_CRITICAL, "parse_delay_pool_count: multiple delay_pools lines, aborting all previous delay_pools config");
714VectorPool::Id::Id(VectorPool::Pointer aPool, int anIndex) : theVector (aPool), theIndex (anIndex)
866ClassCHostPool::Id::Id (ClassCHostPool::Pointer aPool, unsigned char aNet, unsigned char aHost) : theClassCHost (aPool), theNet (aNet), theHost (aHost)
872 return theClassCHost->buckets.values[theNet].individuals.values[theHost].bytesWanted (min, max);
Definition: delay_pools.cc:66
int bytesWanted(int min, int max) const override
Definition: delay_pools.cc:435
void delayRead(const AsyncCallPointer &) override
Definition: delay_pools.cc:242
Definition: delay_pools.cc:44
DelayIdComposite::Pointer id(CompositeSelectionDetails &) override
Definition: delay_pools.cc:423
Definition: delay_pools.cc:174
unsigned char findHostMapPosition(unsigned char const host) const
Definition: delay_pools.cc:334
unsigned char hostPosition(DelaySpec &rate, unsigned char const host)
Definition: delay_pools.cc:352
VectorMap< unsigned char, DelayBucket > individuals
Definition: delay_pools.cc:186
void initHostIndex(DelaySpec &rate, unsigned char index, unsigned char host)
Definition: delay_pools.cc:367
bool individualUsed(unsigned int index) const
Definition: delay_pools.cc:340
bool individualAllocated(unsigned char host) const
Definition: delay_pools.cc:346
Definition: delay_pools.cc:226
RefCount< ClassCHostPool > theClassCHost
Definition: delay_pools.cc:235
Id(RefCount< ClassCHostPool >, unsigned char, unsigned char)
Definition: delay_pools.cc:866
int bytesWanted(int min, int max) const override
Definition: delay_pools.cc:870
Definition: delay_pools.cc:191
DelayIdComposite::Pointer id(CompositeSelectionDetails &) override
Definition: delay_pools.cc:839
unsigned char makeHostKey(Ip::Address &src_addr) const
Definition: delay_pools.cc:814
bool keyAllocated(unsigned char const key) const
Definition: delay_pools.cc:808
VectorMap< unsigned char, ClassCBucket > buckets
Definition: delay_pools.cc:218
virtual unsigned int makeKey(Ip::Address &src_addr) const
Definition: delay_pools.cc:827
Definition: delay_pools.cc:163
unsigned int makeKey(Ip::Address &src_addr) const override
Definition: delay_pools.cc:742
Definition: CommonPool.h:26
static CommonPool * Factory(unsigned char _class, CompositePoolNode::Pointer &)
Definition: delay_pools.cc:248
Ip::Address src_addr
Definition: CompositePoolNode.h:51
Definition: CompositePoolNode.h:26
MEMPROXY_CLASS(CompositePoolNode)
virtual void stats(StoreEntry *sentry)=0
Definition: DelayBucket.h:19
Definition: DelayIdComposite.h:20
Definition: DelayPool.h:24
static void deregisterForUpdates(Updateable *)
Definition: delay_pools.cc:515
static void RegisterWithCacheManager(void)
Definition: delay_pools.cc:452
static void registerForUpdates(Updateable *)
Definition: delay_pools.cc:508
Definition: DelaySpec.h:16
Definition: DelayTagged.h:42
Definition: DelayUser.h:41
Definition: DelayVector.h:19
Definition: delay_pools.cc:153
unsigned int makeKey(Ip::Address &src_addr) const override
Definition: delay_pools.cc:730
Definition: Address.h:41
Definition: NullDelayId.h:19
Definition: Store.h:42
Definition: DelayPools.h:25
Definition: delay_pools.cc:88
unsigned char findKeyIndex(Key const key) const
Definition: delay_pools.cc:679
Definition: delay_pools.cc:137
int bytesWanted(int min, int max) const override
Definition: delay_pools.cc:718
Definition: delay_pools.cc:108
DelayIdComposite::Pointer id(CompositeSelectionDetails &) override
Definition: delay_pools.cc:693
virtual unsigned int makeKey(Ip::Address &src_addr) const =0
virtual char const * label() const =0
bool keyAllocated(unsigned char const key) const
Definition: delay_pools.cc:664
void eventAdd(const char *name, EVH *func, void *arg, double when, int weight, bool cbdata)
Definition: event.cc:107
void RegisterAction(char const *action, char const *desc, OBJH *handler, int pw_req_flag, int atomic)
Definition: Registration.cc:16
time_t getCurrentTime() STUB_RETVAL(0) int tvSubUsec(struct timeval