ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
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... | |
getBuildObjective () | |
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 ilChatroomSetupAgent, ilCommonSetupAgent, ilPrivacySecuritySetupAgent, ILIAS\FileDelivery\Setup\Agent, ilWebServicesSetupAgent, ilBibliographicSetupAgent, ilDatabaseSetupAgent, ilLanguageSetupAgent, ilLoggingSetupAgent, ilStyleSetupAgent, ilSystemFolderSetupAgent, ilGlobalCacheSetupAgent, ilGlobalScreenSetupAgent, ilBackgroundTasksSetupAgent, ilDataCollectionSetupAgent, ilUICoreSetupAgent, ilADNAgent, ilComponentsSetupAgent, ilFileObjectAgent, ilFileSystemSetupAgent, ILIAS\GlobalScreen_\UI\Footer\Setup\Agent, ilHttpSetupAgent, ilPluginDefaultAgent, ilUtilitiesSetupAgent, ilMathJaxSetupAgent, ILIAS\OnScreenChat\Setup\Agent, ILIAS\DataProtection\Setup\Agent, ILIAS\LegalDocuments\Setup\Agent, ilMediaObjectSetupAgent, ilResourceStorageSetupAgent, ilVirusScannerSetupAgent, ilLearningModuleSetupAgent, ilAuthenticationSetupAgent, ilIndividualAssessmentSetupAgent, ilLearningSequenceSetupAgent, ilOrgUnitSetupAgent, ilWOPISetupAgent, ilContentPageSetupAgent, ilEventHandlingSetupAgent, ilGlossarySetupAgent, ILIAS\components\Table\Setup\LegacyTableSetupAgent, ilCertificatSetupAgent, ilCmiXapiSetupAgent, ilHTLMSetupAgent, ilLTIConsumerSetupAgent, ilLTISetupAgent, ilForumSetupAgent, ilMailSetupAgent, and ilNotificationUpdateAgent.
ILIAS\Setup\Agent::getBuildObjective | ( | ) |
Get the goal the agent wants to achieve to build artifacts.
Implemented in ilChatroomSetupAgent, ilCommonSetupAgent, ilGlobalCacheSetupAgent, ilDatabaseSetupAgent, ilWebServicesSetupAgent, ilHttpSetupAgent, ilPrivacySecuritySetupAgent, ilSystemFolderSetupAgent, ilLoggingSetupAgent, ilAuthenticationSetupAgent, ilLanguageSetupAgent, ilBibliographicSetupAgent, ilPluginDefaultAgent, ilMathJaxSetupAgent, ilStyleSetupAgent, ilUtilitiesSetupAgent, ilBackgroundTasksSetupAgent, ilComponentsSetupAgent, ilFileSystemSetupAgent, ilMediaObjectSetupAgent, ilLearningSequenceSetupAgent, ilResourceStorageSetupAgent, ilUICoreSetupAgent, ilDataCollectionSetupAgent, ilFileObjectAgent, ilGlobalScreenSetupAgent, ilHTLMSetupAgent, ilADNAgent, ilVirusScannerSetupAgent, ilEventHandlingSetupAgent, ilLearningModuleSetupAgent, ILIAS\GlobalScreen_\UI\Footer\Setup\Agent, ilIndividualAssessmentSetupAgent, ilForumSetupAgent, ilWOPISetupAgent, ILIAS\OnScreenChat\Setup\Agent, ILIAS\DataProtection\Setup\Agent, ILIAS\LegalDocuments\Setup\Agent, ilNotificationUpdateAgent, ilGlossarySetupAgent, ilCertificatSetupAgent, ILIAS\components\Table\Setup\LegacyTableSetupAgent, ilOrgUnitSetupAgent, ilMailSetupAgent, ilContentPageSetupAgent, ilCmiXapiSetupAgent, ilLTIConsumerSetupAgent, ilLTISetupAgent, ILIAS\FileDelivery\Setup\Agent, and ILIAS\StaticURL\SetupAgent.
Referenced by ILIAS\Setup\AgentCollection\getBuildObjective().
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.
Referenced by ilMediaObjectSetupAgent\getArrayToConfigTransformation(), ilMathJaxSetupAgent\getArrayToConfigTransformation(), ilUtilitiesSetupAgent\getArrayToConfigTransformation(), and 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 ilChatroomSetupAgent, ilCommonSetupAgent, ilGlobalCacheSetupAgent, ilDatabaseSetupAgent, ilWebServicesSetupAgent, ilHttpSetupAgent, ilLoggingSetupAgent, ilPrivacySecuritySetupAgent, ilSystemFolderSetupAgent, ilComponentsSetupAgent, ilAuthenticationSetupAgent, ilBackgroundTasksSetupAgent, ilLanguageSetupAgent, ilBibliographicSetupAgent, ilPluginDefaultAgent, ilMathJaxSetupAgent, ilStyleSetupAgent, ilUtilitiesSetupAgent, ilLearningSequenceSetupAgent, ilUICoreSetupAgent, ilFileSystemSetupAgent, ilResourceStorageSetupAgent, ilMediaObjectSetupAgent, ilGlobalScreenSetupAgent, ilEventHandlingSetupAgent, ilFileObjectAgent, ilLearningModuleSetupAgent, ilADNAgent, ilIndividualAssessmentSetupAgent, ilVirusScannerSetupAgent, ILIAS\FileDelivery\Setup\Agent, ILIAS\GlobalScreen_\UI\Footer\Setup\Agent, ilForumSetupAgent, ilCertificatSetupAgent, ilGlossarySetupAgent, ilWOPISetupAgent, ILIAS\OnScreenChat\Setup\Agent, ILIAS\components\Table\Setup\LegacyTableSetupAgent, ILIAS\DataProtection\Setup\Agent, ILIAS\LegalDocuments\Setup\Agent, ilNotificationUpdateAgent, ilHTLMSetupAgent, ilCmiXapiSetupAgent, ilLTIConsumerSetupAgent, ilLTISetupAgent, ilOrgUnitSetupAgent, ilMailSetupAgent, ilContentPageSetupAgent, and ilDataCollectionSetupAgent.
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 |
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.
Referenced by ILIAS\Setup\AgentCollection\getStatusObjective().
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.
Referenced by ilMediaObjectSetupAgent\getArrayToConfigTransformation(), ilMathJaxSetupAgent\getArrayToConfigTransformation(), ilUtilitiesSetupAgent\getArrayToConfigTransformation(), and ILIAS\Setup\AgentCollection\getUpdateObjective().
ILIAS\Setup\Agent::hasConfig | ( | ) |
Does this agent require a configuration?
Implemented in ilChatroomSetupAgent, ILIAS\FileDelivery\Setup\Agent, ilCommonSetupAgent, ilBibliographicSetupAgent, ilDatabaseSetupAgent, ilDataCollectionSetupAgent, ilLanguageSetupAgent, ilLoggingSetupAgent, ilFileObjectAgent, ILIAS\GlobalScreen_\UI\Footer\Setup\Agent, ilPrivacySecuritySetupAgent, ilStyleSetupAgent, ilSystemFolderSetupAgent, ilADNAgent, ilGlobalCacheSetupAgent, ilGlobalScreenSetupAgent, ilBackgroundTasksSetupAgent, ilUICoreSetupAgent, ilComponentsSetupAgent, ilFileSystemSetupAgent, ilHttpSetupAgent, ILIAS\OnScreenChat\Setup\Agent, ilWebServicesSetupAgent, ilPluginDefaultAgent, ILIAS\DataProtection\Setup\Agent, ILIAS\LegalDocuments\Setup\Agent, ilUtilitiesSetupAgent, ilMathJaxSetupAgent, ilMediaObjectSetupAgent, ilResourceStorageSetupAgent, ilVirusScannerSetupAgent, ilAuthenticationSetupAgent, ilOrgUnitSetupAgent, ilLearningModuleSetupAgent, ilWOPISetupAgent, ilContentPageSetupAgent, ilGlossarySetupAgent, ilIndividualAssessmentSetupAgent, ilLearningSequenceSetupAgent, ILIAS\components\Table\Setup\LegacyTableSetupAgent, ilCertificatSetupAgent, ilCmiXapiSetupAgent, ilEventHandlingSetupAgent, ilHTLMSetupAgent, ilLTIConsumerSetupAgent, ilLTISetupAgent, ilForumSetupAgent, ilMailSetupAgent, and ilNotificationUpdateAgent.
Referenced by ILIAS\Setup\AgentCollection\getInstallObjective().