BasicActions.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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 virtual void dump(StoreEntry *entry);
31
32protected:
34};
35
37class MenuAction: public Action
38{
39public:
40 static Pointer Create(const CommandPointer &cmd);
41 /* Action API */
42 virtual void dump(StoreEntry *entry);
43
44protected:
46};
47
50{
51public:
52 static Pointer Create(const CommandPointer &cmd);
53 /* Action API */
54 virtual void dump(StoreEntry *entry);
55
56protected:
58};
59
62{
63public:
64 static Pointer Create(const CommandPointer &cmd);
65 /* Action API */
66 virtual void dump(StoreEntry *entry);
67
68protected:
70};
71
73class RotateAction: public Action
74{
75public:
76 static Pointer Create(const CommandPointer &cmd);
77 /* Action API */
78 virtual void dump(StoreEntry *entry);
79
80protected:
82};
83
86{
87public:
88 static Pointer Create(const CommandPointer &cmd);
89 /* Action API */
90 virtual void dump(StoreEntry *entry);
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
static Pointer Create(const CommandPointer &cmd)
Definition: BasicActions.cc:23
IndexAction(const CommandPointer &cmd)
Definition: BasicActions.cc:28
virtual void dump(StoreEntry *entry)
Definition: BasicActions.cc:34
returns available Cache Manager actions and their access requirements
Definition: BasicActions.h:38
static Pointer Create(const CommandPointer &cmd)
Definition: BasicActions.cc:40
MenuAction(const CommandPointer &cmd)
Definition: BasicActions.cc:45
virtual void dump(StoreEntry *entry)
Definition: BasicActions.cc:51
changes offline mode
Definition: BasicActions.h:86
virtual void dump(StoreEntry *entry)
static Pointer Create(const CommandPointer &cmd)
OfflineToggleAction(const CommandPointer &cmd)
reconfigures Squid
Definition: BasicActions.h:62
ReconfigureAction(const CommandPointer &cmd)
Definition: BasicActions.cc:90
virtual void dump(StoreEntry *entry)
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)
virtual void dump(StoreEntry *entry)
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
virtual void dump(StoreEntry *entry)
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