]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/BasicActions.h
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
9 /* DEBUG: section 16 Cache Manager API */
11 #ifndef SQUID_MGR_BASIC_ACTIONS_H
12 #define SQUID_MGR_BASIC_ACTIONS_H
14 #include "mgr/Action.h"
16 /* a collection of simple, mostly stateless actions */
21 /// A dummy action placeholder for the no-action requests
22 /// a templated Cache Manager index ('home') page.
23 /// Display output is produced directly by the receiving worker
24 /// without invoking the co-ordinator or action Job.
25 class IndexAction
: public Action
28 static Pointer
Create(const CommandPointer
&cmd
);
30 virtual void dump(StoreEntry
*entry
);
33 IndexAction(const CommandPointer
&cmd
);
36 /// returns available Cache Manager actions and their access requirements
37 class MenuAction
: public Action
40 static Pointer
Create(const CommandPointer
&cmd
);
42 virtual void dump(StoreEntry
*entry
);
45 MenuAction(const CommandPointer
&cmd
);
49 class ShutdownAction
: public Action
52 static Pointer
Create(const CommandPointer
&cmd
);
54 virtual void dump(StoreEntry
*entry
);
57 ShutdownAction(const CommandPointer
&cmd
);
60 /// reconfigures Squid
61 class ReconfigureAction
: public Action
64 static Pointer
Create(const CommandPointer
&cmd
);
66 virtual void dump(StoreEntry
*entry
);
69 ReconfigureAction(const CommandPointer
&cmd
);
72 /// starts log rotation
73 class RotateAction
: public Action
76 static Pointer
Create(const CommandPointer
&cmd
);
78 virtual void dump(StoreEntry
*entry
);
81 RotateAction(const CommandPointer
&cmd
);
84 /// changes offline mode
85 class OfflineToggleAction
: public Action
88 static Pointer
Create(const CommandPointer
&cmd
);
90 virtual void dump(StoreEntry
*entry
);
93 OfflineToggleAction(const CommandPointer
&cmd
);
96 /// Registeres profiles for the actions above; \todo move elsewhere?
97 void RegisterBasics();
101 #endif /* SQUID_MGR_BASIC_ACTIONS_H */