SBufStatsAction.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef SQUID_SBUFEXTRAS_H
10#define SQUID_SBUFEXTRAS_H
11
12#include "mgr/Action.h"
13#include "sbuf/SBuf.h"
14#include "StatHist.h"
15
16class StoreEntry;
17
20{
21public:
24 static void RegisterWithCacheManager(void);
25
26protected:
28 /* Mgr::Action API */
29 void collect() override;
30 void dump(StoreEntry* entry) override;
31
32private:
33 /* Mgr::Action API */
34 void add(const Mgr::Action& action) override;
35 void pack(Ipc::TypedMsgHdr& msg) const override;
36 void unpack(const Ipc::TypedMsgHdr& msg) override;
37
42};
43
44#endif /* SQUID_SBUFSTATSACTION_H */
45
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:35
Various MemBlob class-wide statistics.
Definition: MemBlob.h:20
const CommandPointer cmd
the command that caused this action
Definition: Action.h:86
SBuf stats for cachemgr.
SBufStatsAction(const Mgr::CommandPointer &cmd)
MemBlobStats mbdata
void add(const Mgr::Action &action) override
incrementally merge in remote information (of the same action type)
StatHist sbsizesatdestruct
void unpack(const Ipc::TypedMsgHdr &msg) override
unpack action info from the message received by Coordinator
static void RegisterWithCacheManager(void)
void pack(Ipc::TypedMsgHdr &msg) const override
pack collected action info into a message to be sent to Coordinator
void collect() override
calculate and keep local action-specific information
StatHist mbsizesatdestruct
static Pointer Create(const Mgr::CommandPointer &cmd)
Mgr::ClassActionCreationHandler for Mgr::RegisterAction()
void dump(StoreEntry *entry) override
static bool action(int fd, size_t metasize, const char *fn, const char *url, const SquidMetaList &meta)
Definition: purge.cc:315

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors