31 new \ilDatabaseInitializedObjective()
37 $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
38 $client_ini = $environment->
getResource(Environment::RESOURCE_CLIENT_INI);
46 $service = $config->getAdaptorName();
50 "The backend that is used for the ILIAS cache." 54 $config->isActivated()
57 $servers = $config->getNodes();
62 $server_collection = [];
65 Metric::STABILITY_CONFIG,
70 Metric::STABILITY_CONFIG,
75 Metric::STABILITY_CONFIG,
80 $server_collection[] =
new Metric(
81 Metric::STABILITY_CONFIG,
82 Metric::TYPE_COLLECTION,
88 "Configured memcached node." 93 Metric::STABILITY_CONFIG,
94 Metric::TYPE_COLLECTION,
96 "Collection of configured memcached nodes." 98 $storage->
store(
"memcached_nodes", $nodes);
101 $component_activation = [];
102 foreach (ilGlobalCache::getAvailableComponents() as $component) {
103 $component_activation[$component] =
new Metric(
104 Metric::STABILITY_CONFIG,
106 $config->isComponentActivated($component)
109 $component_activation =
new Metric(
110 Metric::STABILITY_CONFIG,
111 Metric::TYPE_COLLECTION,
112 $component_activation,
113 "Which components are activated to use caching?" 117 $component_activation
storeConfigBool(string $key, bool $value, ?string $description=null)
store(string $key, Metric $metric)
Store some metric in the storage.
collectFrom(Environment $environment, Storage $storage)
storeConfigText(string $key, string $value, ?string $description=null)
A metric is something we can measure about the system.
getTentativePreconditions(Environment $environment)
Base class to simplify collection of metrics.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
An environment holds resources to be used in the setup process.