ILIAS
release_8 Revision v8.19
|
A agent is some component that performs part of the setup process. More...
Public Member Functions | |
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) | |
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... | |
getBuildArtifactObjective () | |
Get the goal the agent wants to achieve to build artifacts. More... | |
getStatusObjective (Metrics\Storage $storage) | |
Get the objective to be achieved when status is requested. More... | |
getMigrations () | |
Get a named map of migrations available for this Agent. More... | |
getNamedObjectives (?Config $config=null) | |
Gets all named objectives The keys of the returned array are the commands. More... | |
A agent is some component that performs part of the setup process.
ILIAS\Setup\Agent::getArrayToConfigTransformation | ( | ) |
Agents must be able to tell how to create a configuration from a nested array.
Implemented in ILIAS\Setup\AgentCollection, ILIAS\Setup\Agent\NullAgent, ilTreeSetupAgent, ilCourseObjectiveSetupAgent, ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent, ilTestQuestionPoolSetupAgent, ilResourceStorageSetupAgent, ILIAS\LDAP\Setup\LDAPSetupAgent, and ilUICoreSetupAgent.
Referenced by ILIAS\Setup\CLI\readAgentConfig().
ILIAS\Setup\Agent::getBuildArtifactObjective | ( | ) |
Get the goal the agent wants to achieve to build artifacts.
Implemented in ILIAS\Setup\AgentCollection, ILIAS\Setup\Agent\NullAgent, ilResourceStorageSetupAgent, ilTreeSetupAgent, ilUICoreSetupAgent, ILIAS\LDAP\Setup\LDAPSetupAgent, ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent, ilCourseObjectiveSetupAgent, and ilTestQuestionPoolSetupAgent.
Referenced by ILIAS\Setup\AgentCollection\getBuildArtifactObjective().
ILIAS\Setup\Agent::getInstallObjective | ( | Config | $config = null | ) |
Get the goals the agent wants to achieve on setup.
The provided configuration is to be used to set according configuration values in the installation.
Implemented in ILIAS\Setup\AgentCollection, ILIAS\Setup\Agent\NullAgent, ilTreeSetupAgent, ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent, ilCourseObjectiveSetupAgent, ilTestQuestionPoolSetupAgent, ilResourceStorageSetupAgent, and ilUICoreSetupAgent.
Referenced by ILIAS\Setup\AgentCollection\getInstallObjective().
ILIAS\Setup\Agent::getMigrations | ( | ) |
Get a named map of migrations available for this Agent.
Should also return Migrations that have run completely.
Implemented in ILIAS\Setup\Agent\NullAgent, ilResourceStorageSetupAgent, ilUICoreSetupAgent, ilTreeSetupAgent, ILIAS\LDAP\Setup\LDAPSetupAgent, ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent, and ilTestQuestionPoolSetupAgent.
Referenced by ILIAS\Setup\AgentCollection\getStatusObjective().
ILIAS\Setup\Agent::getNamedObjectives | ( | ?Config | $config = null | ) |
Gets all named objectives The keys of the returned array are the commands.
Only the AgentCollection should return an array where the cmd of the named objective is the array key.
Config | null | $config |
Implemented in ILIAS\Setup\AgentCollection, ILIAS\Setup\Agent\NullAgent, ilUICoreSetupAgent, ilTreeSetupAgent, and ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent.
ILIAS\Setup\Agent::getStatusObjective | ( | Metrics\Storage | $storage | ) |
Get the objective to be achieved when status is requested.
Make sure that this runs in a reasonable time and also uses a reasonable amount of ressources, since the command fed by this objective is meant to be called by monitoring systems in short intervalls. So no expansive queries, complicated calculations or long lasting network requests.
This is supposed to inform about any kind of metrics regarding the component.
Implemented in ILIAS\Setup\AgentCollection.
Referenced by ILIAS\Setup\CLI\StatusCommand\getMetrics(), and ILIAS\Setup\AgentCollection\getStatusObjective().
ILIAS\Setup\Agent::getUpdateObjective | ( | Config | $config = null | ) |
Get the goal the agent wants to achieve on update.
The provided configuration is to be used to change according configuration values in the installation. If this is not possible for some reason, an according UnachievableException needs to be thrown in the according objective.
The configuration is not to be used to initialize the required environment for the objectives. This must be done via ClientIdReadObjective and depending objectives like ilIniFilesLoadedObjective.
If no configuration is provided the configuration of the component should stay as is.
Implemented in ILIAS\Setup\AgentCollection, ILIAS\Setup\Agent\NullAgent, ilResourceStorageSetupAgent, ilTreeSetupAgent, ilUICoreSetupAgent, and ILIAS\Dashboard\Setup\ilDashboardUpdateAgent.
Referenced by ILIAS\Setup\AgentCollection\getUpdateObjective().
ILIAS\Setup\Agent::hasConfig | ( | ) |
Does this agent require a configuration?
Implemented in ILIAS\Setup\AgentCollection, ILIAS\Setup\Agent\NullAgent, ilTreeSetupAgent, ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent, ilTestQuestionPoolSetupAgent, ilResourceStorageSetupAgent, ILIAS\LDAP\Setup\LDAPSetupAgent, and ilUICoreSetupAgent.
Referenced by ILIAS\Setup\AgentCollection\getInstallObjective(), and ILIAS\Setup\CLI\readAgentConfig().