CacheManagerShutdownAction();
};
+class CacheManagerReconfigureAction : public CacheManagerAction {
+public:
+ virtual void run (StoreEntry *sentry);
+ CacheManagerReconfigureAction();
+};
+
+
class CacheManagerActionList : public Vector<CacheManagerAction *> {
};
delete(ActionsList); //TODO: Laaazy. Will be moved to class member
ActionsList = new CacheManagerActionList;
registerAction("menu", "This Cachemanager Menu", MenuCommand, 0, 1);
- registerAction("reconfigure",
- "Reconfigure the Squid Process",
- ReconfigureCommand, 1, 1);
registerAction("offline_toggle",
"Toggle offline_mode setting",
OfflineToggleCommand, 1, 1);
registerAction(new CacheManagerShutdownAction);
+ registerAction(new CacheManagerReconfigureAction);
}
void
}
CacheManagerShutdownAction::CacheManagerShutdownAction() : CacheManagerAction("shutdown","Shut Down the Squid Process", 1, 1) { }
-/// \ingroup CacheManagerInternal
void
-CacheManager::ReconfigureCommand(StoreEntry * sentry)
+CacheManagerReconfigureAction::run(StoreEntry * sentry)
{
debug(16, 0) ("Reconfigure by command.\n");
storeAppendPrintf(sentry, "Reconfiguring Squid Process ....");
reconfigure(SIGHUP);
}
+CacheManagerReconfigureAction::CacheManagerReconfigureAction() : CacheManagerAction("reconfigure","Reconfigure Squid", 1, 1) { }
/// \ingroup CacheManagerInternal
void