]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/BasicActions.h
4 * DEBUG: section 16 Cache Manager API
8 #ifndef SQUID_MGR_BASIC_ACTIONS_H
9 #define SQUID_MGR_BASIC_ACTIONS_H
11 #include "mgr/Action.h"
13 /* a collection of simple, mostly stateless actions */
19 /// A dummy action placeholder for the no-action requests
20 /// a templated Cache Manager index ('home') page.
21 /// Display output is produced directly by the receiving worker
22 /// without invoking the co-ordinator or action Job.
23 class IndexAction
: public Action
26 static Pointer
Create(const CommandPointer
&cmd
);
28 virtual void dump(StoreEntry
*entry
);
31 IndexAction(const CommandPointer
&cmd
);
35 /// returns available Cache Manager actions and their access requirements
36 class MenuAction
: public Action
39 static Pointer
Create(const CommandPointer
&cmd
);
41 virtual void dump(StoreEntry
*entry
);
44 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 */