Squid Web Cache master
Loading...
Searching...
No Matches
FunAction.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 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
17namespace Mgr
18{
19
22class FunAction: public Action
23{
24protected:
25 FunAction(const CommandPointer &cmd, OBJH *aHandler);
26
27public:
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
35protected:
36 /* Action API */
37 void dump(StoreEntry *entry) override;
38
39private:
41};
42
43} // namespace Mgr
44
45#endif /* SQUID_SRC_MGR_FUNACTION_H */
46
const CommandPointer cmd
the command that caused this action
Definition Action.h:90
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
OBJH * handler
legacy function that collects and dumps info
Definition FunAction.h:40
bool aggregatable() const override
Definition FunAction.h:33
void dump(StoreEntry *entry) override
Definition FunAction.cc:48
cache manager request
Definition Request.h:24
void OBJH(StoreEntry *)
Definition forward.h:44
Cache Manager API.
Definition Action.h:21