FunAction.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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_SRC_MGR_FUNACTION_H
12 #define SQUID_SRC_MGR_FUNACTION_H
13 
14 #include "mgr/Action.h"
15 #include "mgr/ActionCreator.h"
16 
17 namespace Mgr
18 {
19 
22 class FunAction: public Action
23 {
24 protected:
25  FunAction(const CommandPointer &cmd, OBJH *aHandler);
26 
27 public:
28  static Pointer Create(const CommandPointer &cmd, OBJH *aHandler);
29 
30  /* Action API */
31  void respond(const Request& request) override;
32  // we cannot aggregate because we do not even know what the handler does
33  bool aggregatable() const override { return false; }
34 
35 protected:
36  /* Action API */
37  void dump(StoreEntry *entry) override;
38 
39 private:
41 };
42 
43 } // namespace Mgr
44 
45 #endif /* SQUID_SRC_MGR_FUNACTION_H */
46 
bool aggregatable() const override
Definition: FunAction.h:33
void dump(StoreEntry *entry) override
Definition: FunAction.cc:48
FunAction(const CommandPointer &cmd, OBJH *aHandler)
Definition: FunAction.cc:30
const CommandPointer cmd
the command that caused this action
Definition: Action.h:90
OBJH * handler
legacy function that collects and dumps info
Definition: FunAction.h:40
void OBJH(StoreEntry *)
Definition: forward.h:44
cache manager request
Definition: Request.h:23
void respond(const Request &request) override
respond to Coordinator request; default is to collect and sendResponse
Definition: FunAction.cc:38
static Pointer Create(const CommandPointer &cmd, OBJH *aHandler)
Definition: FunAction.cc:25
Cache Manager API.
Definition: Action.h:20

 

Introduction

Documentation

Support

Miscellaneous