StoreIoAction.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2021 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_STORE_IO_ACTION_H
12 #define SQUID_MGR_STORE_IO_ACTION_H
13 
14 #include "mgr/Action.h"
15 
16 namespace Mgr
17 {
18 
21 {
22 public:
25 
26 public:
27  double create_calls;
31 };
32 
34 class StoreIoAction: public Action
35 {
36 protected:
38 
39 public:
40  static Pointer Create(const CommandPointer &cmd);
41  /* Action API */
42  virtual void add(const Action& action);
43  virtual void pack(Ipc::TypedMsgHdr& msg) const;
44  virtual void unpack(const Ipc::TypedMsgHdr& msg);
45 
46 protected:
47  /* Action API */
48  virtual void collect();
49  virtual void dump(StoreEntry* entry);
50 
51 private:
53 };
54 
55 } // namespace Mgr
56 
57 #endif /* SQUID_MGR_STORE_IO_ACTION_H */
58 
virtual void pack(Ipc::TypedMsgHdr &msg) const
pack collected action info into a message to be sent to Coordinator
static bool action(int fd, size_t metasize, const char *fn, const char *url, const SquidMetaList &meta)
Definition: purge.cc:311
class Ping::pingStats_ stats
virtual void unpack(const Ipc::TypedMsgHdr &msg)
unpack action info from the message received by Coordinator
const CommandPointer cmd
the command that caused this action
Definition: Action.h:86
virtual void collect()
calculate and keep local action-specific information
StoreIoAction(const CommandPointer &cmd)
virtual void dump(StoreEntry *entry)
Store IO interface data.
Definition: StoreIoAction.h:21
StoreIoActionData & operator+=(const StoreIoActionData &stats)
virtual void add(const Action &action)
incrementally merge in remote information (of the same action type)
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:33
StoreIoActionData data
Definition: StoreIoAction.h:52
static Pointer Create(const CommandPointer &cmd)
implement aggregated 'store_io' action
Definition: StoreIoAction.h:35
Cache Manager API.
Definition: Action.h:20

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors