DiskdAction.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 79 Squid-side DISKD I/O functions. */
10
11#ifndef SQUID_DISKD_ACTION_H
12#define SQUID_DISKD_ACTION_H
13
14#include "ipc/forward.h"
15#include "mgr/Action.h"
16#include "mgr/forward.h"
17
20{
21public:
24
25public:
26 double sent_count;
27 double recv_count;
28 double max_away;
29 double max_shmuse;
32 double open_ops;
34 double open_fail;
35 double create_ops;
38 double close_ops;
40 double close_fail;
41 double unlink_ops;
44 double read_ops;
46 double read_fail;
47 double write_ops;
49 double write_fail;
50};
51
54{
55protected:
57
58public:
59 static Pointer Create(const Mgr::CommandPointer &aCmd);
60 /* Action API */
61 virtual void add(const Mgr::Action& action);
62 virtual void pack(Ipc::TypedMsgHdr& hdrMsg) const;
63 virtual void unpack(const Ipc::TypedMsgHdr& hdrMsg);
64
65protected:
66 /* Action API */
67 virtual void collect();
68 virtual void dump(StoreEntry* entry);
69
70private:
72};
73
74#endif /* SQUID_DISKD_ACTION_H */
75
store disk daemon stats
Definition: DiskdAction.h:20
double recv_count
Definition: DiskdAction.h:27
double close_success
Definition: DiskdAction.h:39
double unlink_fail
Definition: DiskdAction.h:43
double unlink_ops
Definition: DiskdAction.h:41
double close_fail
Definition: DiskdAction.h:40
double create_ops
Definition: DiskdAction.h:35
double max_shmuse
Definition: DiskdAction.h:29
double create_success
Definition: DiskdAction.h:36
double close_ops
Definition: DiskdAction.h:38
double open_fail
Definition: DiskdAction.h:34
double write_fail
Definition: DiskdAction.h:49
double read_fail
Definition: DiskdAction.h:46
double read_success
Definition: DiskdAction.h:45
double write_success
Definition: DiskdAction.h:48
double create_fail
Definition: DiskdAction.h:37
DiskdActionData & operator+=(const DiskdActionData &stats)
Definition: DiskdAction.cc:27
double open_fail_queue_len
Definition: DiskdAction.h:30
double block_queue_len
Definition: DiskdAction.h:31
double write_ops
Definition: DiskdAction.h:47
double sent_count
Definition: DiskdAction.h:26
double open_success
Definition: DiskdAction.h:33
double unlink_success
Definition: DiskdAction.h:42
implement aggregated 'diskd' action
Definition: DiskdAction.h:54
virtual void unpack(const Ipc::TypedMsgHdr &hdrMsg)
unpack action info from the message received by Coordinator
Definition: DiskdAction.cc:148
DiskdActionData data
Definition: DiskdAction.h:71
virtual void add(const Mgr::Action &action)
incrementally merge in remote information (of the same action type)
Definition: DiskdAction.cc:72
DiskdAction(const Mgr::CommandPointer &aCmd)
Definition: DiskdAction.cc:65
static Pointer Create(const Mgr::CommandPointer &aCmd)
Definition: DiskdAction.cc:60
virtual void dump(StoreEntry *entry)
Definition: DiskdAction.cc:115
virtual void collect()
calculate and keep local action-specific information
Definition: DiskdAction.cc:79
virtual void pack(Ipc::TypedMsgHdr &hdrMsg) const
pack collected action info into a message to be sent to Coordinator
Definition: DiskdAction.cc:141
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:35
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