ServiceTimesAction.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/* DEBUG: section 16 Cache Manager API */
10
11#ifndef SQUID_MGR_SERVICE_TIMES_ACTION_H
12#define SQUID_MGR_SERVICE_TIMES_ACTION_H
13
14#include "mgr/Action.h"
15
16namespace Mgr
17{
18
21{
22public:
23 enum { seriesSize = 19 };
24
25public:
28
29public:
44 unsigned int count;
45};
46
49{
50protected:
52
53public:
54 static Pointer Create(const CommandPointer &cmd);
55 /* Action API */
56 virtual void add(const Action& action);
57 virtual void pack(Ipc::TypedMsgHdr& msg) const;
58 virtual void unpack(const Ipc::TypedMsgHdr& msg);
59
60protected:
61 /* Action API */
62 virtual void collect();
63 virtual void dump(StoreEntry* entry);
64
65private:
67};
68
69} // namespace Mgr
70
71#endif /* SQUID_MGR_SERVICE_TIMES_ACTION_H */
72
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:35
const CommandPointer cmd
the command that caused this action
Definition: Action.h:86
store service times for 5 and 60 min
double dns_lookups60[seriesSize]
double http_requests5[seriesSize]
ServiceTimesActionData & operator+=(const ServiceTimesActionData &stats)
double icp_queries60[seriesSize]
double not_modified_replies5[seriesSize]
double dns_lookups5[seriesSize]
double not_modified_replies60[seriesSize]
double cache_hits5[seriesSize]
double cache_misses60[seriesSize]
double near_hits60[seriesSize]
double icp_queries5[seriesSize]
double http_requests60[seriesSize]
double cache_hits60[seriesSize]
double cache_misses5[seriesSize]
implement aggregated 'service_times' action
ServiceTimesAction(const CommandPointer &cmd)
virtual void collect()
calculate and keep local action-specific information
virtual void unpack(const Ipc::TypedMsgHdr &msg)
unpack action info from the message received by Coordinator
static Pointer Create(const CommandPointer &cmd)
ServiceTimesActionData data
virtual void dump(StoreEntry *entry)
virtual void pack(Ipc::TypedMsgHdr &msg) const
pack collected action info into a message to be sent to Coordinator
virtual void add(const Action &action)
incrementally merge in remote information (of the same action type)
Cache Manager API.
Definition: Action.h:20
class Ping::pingStats_ stats
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