Squid Web Cache master
Loading...
Searching...
No Matches
DiskdAction.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 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_SRC_DISKIO_DISKDAEMON_DISKDACTION_H
12#define SQUID_SRC_DISKIO_DISKDAEMON_DISKDACTION_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 void add(const Mgr::Action& action) override;
62 void pack(Ipc::TypedMsgHdr& hdrMsg) const override;
63 void unpack(const Ipc::TypedMsgHdr& hdrMsg) override;
64
65protected:
66 /* Action API */
67 void collect() override;
68 void dump(StoreEntry* entry) override;
69
70private:
72};
73
74#endif /* SQUID_SRC_DISKIO_DISKDAEMON_DISKDACTION_H */
75
store disk daemon stats
Definition DiskdAction.h:20
double close_success
Definition DiskdAction.h:39
double create_success
Definition DiskdAction.h:36
double read_success
Definition DiskdAction.h:45
double write_success
Definition DiskdAction.h:48
DiskdActionData & operator+=(const DiskdActionData &stats)
double open_fail_queue_len
Definition DiskdAction.h:30
double block_queue_len
Definition DiskdAction.h:31
double open_success
Definition DiskdAction.h:33
double unlink_success
Definition DiskdAction.h:42
implement aggregated 'diskd' action
Definition DiskdAction.h:54
DiskdActionData data
Definition DiskdAction.h:71
void unpack(const Ipc::TypedMsgHdr &hdrMsg) override
unpack action info from the message received by Coordinator
void collect() override
calculate and keep local action-specific information
void dump(StoreEntry *entry) override
void add(const Mgr::Action &action) override
incrementally merge in remote information (of the same action type)
void pack(Ipc::TypedMsgHdr &hdrMsg) const override
pack collected action info into a message to be sent to Coordinator
static Pointer Create(const Mgr::CommandPointer &aCmd)
struct msghdr with a known type, fixed-size I/O and control buffers
Definition TypedMsgHdr.h:35