ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\OnScreenChat\Setup\Agent Class Reference
+ Inheritance diagram for ILIAS\OnScreenChat\Setup\Agent:
+ Collaboration diagram for ILIAS\OnScreenChat\Setup\Agent:

Public Member Functions

 __construct (private readonly Refinery $refinery)
 
 hasConfig ()
 Does this agent require a configuration? More...
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array. More...
 
 getInstallObjective (?Config $config=null)
 
 getUpdateObjective (?Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
 getNamedObjectives (?Config $config=null)
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 getInstallObjective (?Config $config=null)
 Get the goals the agent wants to achieve on setup. More...
 
 getUpdateObjective (?Config $config=null)
 Get the goal the agent wants to achieve on update. More...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Detailed Description

Definition at line 33 of file Agent.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\OnScreenChat\Setup\Agent::__construct ( private readonly Refinery  $refinery)

Definition at line 35 of file Agent.php.

36  {
37  }

Member Function Documentation

◆ getArrayToConfigTransformation()

ILIAS\OnScreenChat\Setup\Agent::getArrayToConfigTransformation ( )

Agents must be able to tell how to create a configuration from a nested array.

Exceptions
LogicExceptionif Agent has no Config

Implements ILIAS\Setup\Agent.

Definition at line 44 of file Agent.php.

References ILIAS\Repository\refinery().

44  : Transformation
45  {
46  return $this->refinery->identity();
47  }
+ Here is the call graph for this function:

◆ getBuildObjective()

ILIAS\OnScreenChat\Setup\Agent::getBuildObjective ( )

Get the goal the agent wants to achieve to build artifacts.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent.

Implements ILIAS\Setup\Agent.

Definition at line 59 of file Agent.php.

59  : Objective
60  {
61  return new NullObjective();
62  }

◆ getInstallObjective()

ILIAS\OnScreenChat\Setup\Agent::getInstallObjective ( ?Config  $config = null)

Definition at line 49 of file Agent.php.

49  : Objective
50  {
51  return new NullObjective();
52  }

◆ getMigrations()

ILIAS\OnScreenChat\Setup\Agent::getMigrations ( )

Get a named map of migrations available for this Agent.

Should also return Migrations that have run completely.

Returns
array<string,Migration>|Migration[]

Implements ILIAS\Setup\Agent.

Definition at line 69 of file Agent.php.

69  : array
70  {
71  return [];
72  }

◆ getNamedObjectives()

ILIAS\OnScreenChat\Setup\Agent::getNamedObjectives ( ?Config  $config = null)

Definition at line 74 of file Agent.php.

74  : array
75  {
76  return [];
77  }

◆ getStatusObjective()

ILIAS\OnScreenChat\Setup\Agent::getStatusObjective ( Storage  $storage)

Definition at line 64 of file Agent.php.

64  : Objective
65  {
66  return new ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new UpdateSteps());
67  }

◆ getUpdateObjective()

ILIAS\OnScreenChat\Setup\Agent::getUpdateObjective ( ?Config  $config = null)

Definition at line 54 of file Agent.php.

54  : Objective
55  {
56  return new ilDatabaseUpdateStepsExecutedObjective(new UpdateSteps());
57  }

◆ hasConfig()

ILIAS\OnScreenChat\Setup\Agent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 39 of file Agent.php.

39  : bool
40  {
41  return false;
42  }

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