SBufStatsAction.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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 virtual void collect();
30 virtual void dump(StoreEntry* entry);
31
32private:
33 /* Mgr::Action API */
34 virtual void add(const Mgr::Action& action);
35 virtual void pack(Ipc::TypedMsgHdr& msg) const;
36 virtual void unpack(const Ipc::TypedMsgHdr& msg);
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)
virtual void unpack(const Ipc::TypedMsgHdr &msg)
unpack action info from the message received by Coordinator
MemBlobStats mbdata
virtual void add(const Mgr::Action &action)
incrementally merge in remote information (of the same action type)
StatHist sbsizesatdestruct
static void RegisterWithCacheManager(void)
virtual void dump(StoreEntry *entry)
virtual void pack(Ipc::TypedMsgHdr &msg) const
pack collected action info into a message to be sent to Coordinator
StatHist mbsizesatdestruct
static Pointer Create(const Mgr::CommandPointer &cmd)
Mgr::ClassActionCreationHandler for Mgr::RegisterAction()
virtual void collect()
calculate and keep local action-specific information
static bool action(int fd, size_t metasize, const char *fn, const char *url, const SquidMetaList &meta)
Definition: purge.cc:311

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors