BasicActions.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_MGR_BASIC_ACTIONS_H
12#define SQUID_MGR_BASIC_ACTIONS_H
13
14#include "mgr/Action.h"
15
16/* a collection of simple, mostly stateless actions */
17
18namespace Mgr
19{
20
25class IndexAction: public Action
26{
27public:
28 static Pointer Create(const CommandPointer &cmd);
29 /* Action API */
30 void dump(StoreEntry *entry) override;
31
32protected:
34};
35
37class MenuAction: public Action
38{
39public:
40 static Pointer Create(const CommandPointer &cmd);
41 /* Action API */
42 void dump(StoreEntry *entry) override;
43
44protected:
46};
47
50{
51public:
52 static Pointer Create(const CommandPointer &cmd);
53 /* Action API */
54 void dump(StoreEntry *entry) override;
55
56protected:
58};
59
62{
63public:
64 static Pointer Create(const CommandPointer &cmd);
65 /* Action API */
66 void dump(StoreEntry *entry) override;
67
68protected:
70};
71
73class RotateAction: public Action
74{
75public:
76 static Pointer Create(const CommandPointer &cmd);
77 /* Action API */
78 void dump(StoreEntry *entry) override;
79
80protected:
82};
83
86{
87public:
88 static Pointer Create(const CommandPointer &cmd);
89 /* Action API */
90 void dump(StoreEntry *entry) override;
91
92protected:
94};
95
97void RegisterBasics();
98
99} // namespace Mgr
100
101#endif /* SQUID_MGR_BASIC_ACTIONS_H */
102
const CommandPointer cmd
the command that caused this action
Definition: Action.h:86
void dump(StoreEntry *entry) override
Definition: BasicActions.cc:34
static Pointer Create(const CommandPointer &cmd)
Definition: BasicActions.cc:23
IndexAction(const CommandPointer &cmd)
Definition: BasicActions.cc:28
returns available Cache Manager actions and their access requirements
Definition: BasicActions.h:38
static Pointer Create(const CommandPointer &cmd)
Definition: BasicActions.cc:40
void dump(StoreEntry *entry) override
Definition: BasicActions.cc:51
MenuAction(const CommandPointer &cmd)
Definition: BasicActions.cc:45
changes offline mode
Definition: BasicActions.h:86
void dump(StoreEntry *entry) override
static Pointer Create(const CommandPointer &cmd)
OfflineToggleAction(const CommandPointer &cmd)
reconfigures Squid
Definition: BasicActions.h:62
ReconfigureAction(const CommandPointer &cmd)
Definition: BasicActions.cc:90
void dump(StoreEntry *entry) override
Definition: BasicActions.cc:97
static Pointer Create(const CommandPointer &cmd)
Definition: BasicActions.cc:85
starts log rotation
Definition: BasicActions.h:74
static Pointer Create(const CommandPointer &cmd)
RotateAction(const CommandPointer &cmd)
void dump(StoreEntry *entry) override
shuts Squid down
Definition: BasicActions.h:50
static Pointer Create(const CommandPointer &cmd)
Definition: BasicActions.cc:67
ShutdownAction(const CommandPointer &cmd)
Definition: BasicActions.cc:72
void dump(StoreEntry *entry) override
Definition: BasicActions.cc:78
Cache Manager API.
Definition: Action.h:20
void RegisterBasics()
Registers profiles for the actions above; TODO: move elsewhere?

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors