ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
ILIAS\WebServices\Setup\WebServicesMetricsCollectedObjective Class Reference
+ Inheritance diagram for ILIAS\WebServices\Setup\WebServicesMetricsCollectedObjective:
+ Collaboration diagram for ILIAS\WebServices\Setup\WebServicesMetricsCollectedObjective:

Protected Member Functions

 getTentativePreconditions (Setup\Environment $environment)
 Give preconditions that might or might not be fullfilled. More...
 
 collectFrom (Setup\Environment $environment, Setup\Metrics\Storage $storage)
 Attempt to gather metrics based on the provided environment. More...
 
 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...
 

Additional Inherited Members

- 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...
 
- Protected Attributes inherited from ILIAS\Setup\Metrics\CollectedObjective
Storage $storage
 

Detailed Description

Definition at line 25 of file WebServicesMetricsCollectedObjective.php.

Member Function Documentation

◆ collectFrom()

ILIAS\WebServices\Setup\WebServicesMetricsCollectedObjective::collectFrom ( Setup\Environment  $environment,
Setup\Metrics\Storage  $storage 
)
protected

Attempt to gather metrics based on the provided environment.

Make sure to be very cautious regarding expectations towards the environment. It might only be initialized partially or not be initialized at all, since preconditions might not have been met. This should be implemented with a best effort approach to gather as much metrics as possible even when the installation is damaged.

Reimplemented from ILIAS\Setup\Metrics\CollectedObjective.

Definition at line 34 of file WebServicesMetricsCollectedObjective.php.

34 : void
35 {
36 $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
37 $settings = $factory->settingsFor('common');
38
39 $is_soap_enabled = (bool) $settings->get('soap_user_administration', '0');
41 'soap_user_administration',
42 $is_soap_enabled,
43 'SOAP user administration enabled.'
44 );
45
46 if ($is_soap_enabled) {
48 'soap_wsdl_path',
49 $settings->get('soap_wsdl_path', ''),
50 'Path to SOAP WSDL file.'
51 );
52
54 'soap_connect_timeout',
55 $settings->get('soap_connect_timeout', ''),
56 'SOAP connection timeout in seconds.'
57 );
58
60 'soap_response_timeout',
61 $settings->get('soap_response_timeout', ''),
62 'SOAP response timeout in seconds.'
63 );
64
66 'soap_internal_wsdl_path',
67 $settings->get('soap_internal_wsdl_path', ''),
68 'Path to internal SOAP WSDL file.'
69 );
70
72 'soap_internal_wsdl_verify_peer',
73 (bool) $settings->get('soap_internal_wsdl_verify_peer', '1'),
74 'Verify SSL peer for internal WSDL.'
75 );
76
78 'soap_internal_wsdl_verify_peer_name',
79 (bool) $settings->get('soap_internal_wsdl_verify_peer_name', '1'),
80 'Verify SSL peer name for internal WSDL.'
81 );
82
84 'soap_internal_wsdl_allow_self_signed',
85 (bool) $settings->get('soap_internal_wsdl_allow_self_signed', '0'),
86 'Allow self-signed certificates for internal WSDL.'
87 );
88 }
89
91 'rpc_server_host',
92 $settings->get('rpc_server_host', ''),
93 'RPC server host address.'
94 );
95
97 'rpc_server_port',
98 $settings->get('rpc_server_port', ''),
99 'RPC server port.'
100 );
101 }
storeConfigText(string $key, string $value, ?string $description=null)
storeConfigBool(string $key, bool $value, ?string $description=null)

References ILIAS\Setup\Metrics\CollectedObjective\$storage, ILIAS\Setup\Environment\RESOURCE_SETTINGS_FACTORY, ILIAS\Setup\Metrics\Storage\storeConfigBool(), and ILIAS\Setup\Metrics\Storage\storeConfigText().

+ Here is the call graph for this function:

◆ getTentativePreconditions()

ILIAS\WebServices\Setup\WebServicesMetricsCollectedObjective::getTentativePreconditions ( Setup\Environment  $environment)
protected

Give preconditions that might or might not be fullfilled.

Since collection of metrics should also work in (partially) broken installations the preconditions given here will only be tentatively fullfilled when collectFrom is called.

Returns
Setup\Objective[]

Reimplemented from ILIAS\Setup\Metrics\CollectedObjective.

Definition at line 27 of file WebServicesMetricsCollectedObjective.php.

27 : array
28 {
29 return [
30 new \ilSettingsFactoryExistsObjective()
31 ];
32 }

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