SBufStatsAction.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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 
16 class StoreEntry;
17 
20 {
21 public:
23  static Pointer Create(const Mgr::CommandPointer &cmd);
24  static void RegisterWithCacheManager(void);
25 
26 protected:
27  explicit SBufStatsAction(const Mgr::CommandPointer &cmd);
28  /* Mgr::Action API */
29  virtual void collect();
30  virtual void dump(StoreEntry* entry);
31 
32 private:
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 
static Pointer Create(const Mgr::CommandPointer &cmd)
Mgr::ClassActionCreationHandler for Mgr::RegisterAction()
MemBlobStats mbdata
virtual void add(const Mgr::Action &action)
incrementally merge in remote information (of the same action type)
SBufStatsAction(const Mgr::CommandPointer &cmd)
const CommandPointer cmd
the command that caused this action
Definition: Action.h:86
bool action(int fd, size_t metasize, const char *fn, const char *url, const SquidMetaList &meta)
Definition: purge.cc:311
StatHist mbsizesatdestruct
virtual void unpack(const Ipc::TypedMsgHdr &msg)
unpack action info from the message received by Coordinator
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:31
Various MemBlob class-wide statistics.
Definition: MemBlob.h:19
virtual void dump(StoreEntry *entry)
static void RegisterWithCacheManager(void)
virtual void collect()
calculate and keep local action-specific information
StatHist sbsizesatdestruct
virtual void pack(Ipc::TypedMsgHdr &msg) const
pack collected action info into a message to be sent to Coordinator
SBuf stats for cachemgr.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors