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

Public Member Functions

 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getNamedObjectives (?Config $config=null)
 
 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)
 
 getStatusObjective (Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
- 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

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 34 of file Agent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ILIAS\FileDelivery\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 57 of file Agent.php.

57  : Transformation
58  {
59  throw new LogicException("No Config");
60  }

◆ getBuildObjective()

ILIAS\FileDelivery\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 36 of file Agent.php.

36  : Objective
37  {
38  return new ObjectiveCollection(
39  'File StreamDelivery Artifacts',
40  true,
41  new KeyRotationObjective(),
42  new DeliveryMethodObjective(),
43  // new BaseDirObjective() // removed objective since it's not possible to run it in some environments
44  );
45  }

◆ getInstallObjective()

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

Definition at line 62 of file Agent.php.

62  : Objective
63  {
64  return new DeliveryMethodObjective();
65  }

◆ getMigrations()

ILIAS\FileDelivery\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 77 of file Agent.php.

77  : array
78  {
79  return [];
80  }

◆ getNamedObjectives()

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

Definition at line 47 of file Agent.php.

47  : array
48  {
49  return [];
50  }

◆ getStatusObjective()

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

Definition at line 72 of file Agent.php.

72  : Objective
73  {
74  return new NullObjective();
75  }

◆ getUpdateObjective()

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

Definition at line 67 of file Agent.php.

67  : Objective
68  {
69  return new DeliveryMethodObjective();
70  }

◆ hasConfig()

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

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 52 of file Agent.php.

52  : bool
53  {
54  return false;
55  }

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