ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilBackgroundTasksMetricsCollectedObjective Class Reference
+ Inheritance diagram for ilBackgroundTasksMetricsCollectedObjective:
+ Collaboration diagram for ilBackgroundTasksMetricsCollectedObjective:

Public Member Functions

 getTentativePreconditions (Environment $environment)
 
 collectFrom (Environment $environment, Storage $storage)
 
- Public Member Functions inherited from ILIAS\Setup\Metrics\CollectedObjective
 __construct (Storage $storage)
 
 getHash ()
 Get a hash for this objective. More...
 
 getLabel ()
 Get a label that describes this objective. More...
 
 isNotable ()
 Get to know if this is an interesting objective for a human. More...
 
 getPreconditions (Setup\Environment $environment)
 
 achieve (Setup\Environment $environment)
 
 isApplicable (Setup\Environment $environment)
 
- Public Member Functions inherited from ILIAS\Setup\Objective
 getHash ()
 Get a hash for this objective. More...
 
 getLabel ()
 Get a label that describes this objective. More...
 
 isNotable ()
 Get to know if this is an interesting objective for a human. More...
 
 getPreconditions (Environment $environment)
 Objectives might depend on other objectives. More...
 
 achieve (Environment $environment)
 Objectives can be achieved. More...
 
 isApplicable (Environment $environment)
 Get to know whether the objective is applicable. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\Setup\Metrics\CollectedObjective
 collectFrom (Setup\Environment $environment, Storage $storage)
 Attempt to gather metrics based on the provided environment. More...
 
 getTentativePreconditions (Setup\Environment $environment)
 Give preconditions that might or might not be fullfilled. More...
 
- Protected Attributes inherited from ILIAS\Setup\Metrics\CollectedObjective
Storage $storage
 

Detailed Description

Member Function Documentation

◆ collectFrom()

ilBackgroundTasksMetricsCollectedObjective::collectFrom ( Environment  $environment,
Storage  $storage 
)

Definition at line 35 of file class.ilBackgroundTasksMetricsCollectedObjective.php.

35 : void
36 {
37 $ini = $environment->getResource(Environment::RESOURCE_ILIAS_INI);
38 if (!$ini) {
39 return;
40 }
41
43 "type",
44 $ini->readVariable("background_tasks", "concurrency"),
45 "The type of execution used for background tasks"
46 );
48 "max_number_of_concurrent_tasks",
49 (int) $ini->readVariable("background_tasks", "number_of_concurrent_tasks"),
50 "The maximum amount of concurrent tasks used to run background tasks."
51 );
52 }
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
storeConfigGauge(string $key, $value, ?string $description=null)
storeConfigText(string $key, string $value, ?string $description=null)
$ini
Definition: raiseError.php:20

References $ini, ILIAS\Setup\Metrics\CollectedObjective\$storage, ILIAS\Setup\Environment\getResource(), ILIAS\Setup\Metrics\Storage\storeConfigGauge(), and ILIAS\Setup\Metrics\Storage\storeConfigText().

+ Here is the call graph for this function:

◆ getTentativePreconditions()

ilBackgroundTasksMetricsCollectedObjective::getTentativePreconditions ( Environment  $environment)
Returns
\ilIniFilesLoadedObjective[]

Definition at line 28 of file class.ilBackgroundTasksMetricsCollectedObjective.php.

28 : array
29 {
30 return [
32 ];
33 }

The documentation for this class was generated from the following file: