]>
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 /// returns available Cache Manager actions and their access requirements
20 class MenuAction
: public Action
23 static Pointer
Create(const CommandPointer
&cmd
);
25 virtual void dump(StoreEntry
*entry
);
28 MenuAction(const CommandPointer
&cmd
);
33 class ShutdownAction
: public Action
36 static Pointer
Create(const CommandPointer
&cmd
);
38 virtual void dump(StoreEntry
*entry
);
41 ShutdownAction(const CommandPointer
&cmd
);
44 /// reconfigures Squid
45 class ReconfigureAction
: public Action
48 static Pointer
Create(const CommandPointer
&cmd
);
50 virtual void dump(StoreEntry
*entry
);
53 ReconfigureAction(const CommandPointer
&cmd
);
56 /// starts log rotation
57 class RotateAction
: public Action
60 static Pointer
Create(const CommandPointer
&cmd
);
62 virtual void dump(StoreEntry
*entry
);
65 RotateAction(const CommandPointer
&cmd
);
68 /// changes offline mode
69 class OfflineToggleAction
: public Action
72 static Pointer
Create(const CommandPointer
&cmd
);
74 virtual void dump(StoreEntry
*entry
);
77 OfflineToggleAction(const CommandPointer
&cmd
);
80 /// Registeres profiles for the actions above; \todo move elsewhere?
81 void RegisterBasics();
85 #endif /* SQUID_MGR_BASIC_ACTIONS_H */