]> git.ipfire.org Git - thirdparty/squid.git/commit
Scaffolding for YAML-formatted cache manager reports (#1784)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Tue, 25 Jun 2024 18:18:12 +0000 (18:18 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 25 Jun 2024 18:18:17 +0000 (18:18 +0000)
commit99572608ffe1d6567abd876d27ceeb51174a2237
tree8650828b85f9e7b7d5ce20ae17c94f352b5ed1be
parentca4ed647e7194fcc600c72cf2e8316654342cffc
Scaffolding for YAML-formatted cache manager reports (#1784)

The only YAML-compliant report currently using new code is mgr:pconn.

Non-YAML non-aggregated reports in non-SMP instances are now framed
using "by kid0 {...}" wrappers (for `squid -N`) or "by kid1 {...}"
wrappers (for instances having one worker process and no rock diskers).
This change makes YAML and non-YAML report framing more similar, but may
affect existing report parsing automation.

Also fixed Content-Type value computation for SMP reports: They were
missing ";charset=utf-8" suffix. Broken since 2014 commit 8088f8d0,
possibly due to code duplication created by 2010 commit 8822ebee.

Moved FunActionCreator and ClassActionCreator classes into
src/mgr/Registration.cc because no other code needs to know about them.
This is especially valuable for function-based actions because they do
not need to know about Mgr::FunAction (or even Mgr::Action).
19 files changed:
src/CacheManager.h
src/Makefile.am
src/cache_manager.cc
src/mgr/Action.cc
src/mgr/Action.h
src/mgr/ActionFeatures.h [new file with mode: 0644]
src/mgr/ActionProfile.h
src/mgr/FunAction.cc
src/mgr/FunAction.h
src/mgr/InfoAction.cc
src/mgr/Inquirer.cc
src/mgr/Makefile.am
src/mgr/Registration.cc
src/mgr/Registration.h
src/pconn.cc
src/stat.cc
src/tests/stub_cache_manager.cc
src/tests/stub_libmgr.cc
src/tests/testCacheManager.cc