|
PLCnext API Documentation 26.6.0.38
|
Namespace for services of the AppManager More...
Classes | |
| class | AdditionalAppInfo |
| This structure describes additional information in Arp.Services.AppManager.Services.AppInfo More... | |
| class | AppInfo |
| This structure is used for PLCnext application information indication. More... | |
| class | AppManagerServiceError |
| This struct is used for error codes of the IAppManagerService More... | |
| class | IAppManagerService |
| This services represents the RSC-Interface for the AppManager service component More... | |
Functions | |
| ARP_EXPORT std::ostream & | operator<< (std::ostream &os, AdditionalAppInfoType value) |
| ARP_EXPORT std::istream & | operator>> (std::istream &is, AdditionalAppInfoType &value) |
| ARP_EXPORT std::ostream & | operator<< (std::ostream &os, AppLicenseType value) |
| ARP_EXPORT std::istream & | operator>> (std::istream &is, AppLicenseType &value) |
| ARP_EXPORT std::ostream & | operator<< (std::ostream &os, AppManagerErrorCode value) |
| ARP_EXPORT std::istream & | operator>> (std::istream &is, AppManagerErrorCode &value) |
| ARP_EXPORT std::ostream & | operator<< (std::ostream &os, AppManagerStatus value) |
| ARP_EXPORT std::istream & | operator>> (std::istream &is, AppManagerStatus &value) |
| constexpr AppManagerStatus | operator| (AppManagerStatus lhs, AppManagerStatus rhs) |
| constexpr AppManagerStatus | operator& (AppManagerStatus lhs, AppManagerStatus rhs) |
| constexpr AppManagerStatus & | operator|= (AppManagerStatus &lhs, AppManagerStatus rhs) |
| constexpr AppManagerStatus & | operator&= (AppManagerStatus &lhs, AppManagerStatus rhs) |
| constexpr AppManagerStatus | operator~ (AppManagerStatus arg) |
| ARP_EXPORT std::ostream & | operator<< (std::ostream &os, AppStatus value) |
| ARP_EXPORT std::istream & | operator>> (std::istream &is, AppStatus &value) |
| constexpr AppStatus | operator| (AppStatus lhs, AppStatus rhs) |
| constexpr AppStatus | operator& (AppStatus lhs, AppStatus rhs) |
| constexpr AppStatus & | operator|= (AppStatus &lhs, AppStatus rhs) |
| constexpr AppStatus & | operator&= (AppStatus &lhs, AppStatus rhs) |
| constexpr AppStatus | operator~ (AppStatus arg) |
Namespace for services of the AppManager
|
strong |
This enum describes the type of an !:AdditonalAppInfo entry
|
strong |
This enum is used for PLCnext application license type indication
|
strong |
This enum defines error codes used by the App Manager.
Error reporting model
Arp.Services.AppManager.Services.AppManagerErrorCode values are reported in two different ways:
For asynchronous operations, a successful method return value (Arp.Services.AppManager.Services.AppManagerErrorCode.None) only indicates that the operation was accepted and started. Clients must monitor the execution state and explicitly query extended error information if the operation fails.
| Enumerator | |
|---|---|
| None | No error occurred, operation successful. |
| Unknown | An unknown error has occurred. The textual error description or the log may provide more detailed information. |
| FileNotFound | A file was not found. |
| AppNotInstalled | The referenced PLCnext application is not installed. |
| AppAlreadyInstalled | An PLCnext application with the same app identifier is already installed. |
| AppAlreadyStarted | The PLCnext application is already started. |
| AppNotStarted | The PLCnext application is not started. |
| AppMountError | An error occurred while mounting the PLCnext application container. |
| AppInfoFileError | The PLCnext application information file could not be read. |
| SettingsError | Settings could not be read. |
| AppInfoFileNotFound | The PLCnext application information file was not found. |
| IoError | An input/output error has occurred. |
| EngineerAppStarted | An Engineer application is already started, this must first be stopped. |
| KeyNotFound | Key not found. Internal map may not contain the PLCnext application identifier. |
| TargetIncompatible | The control unit is incompatible with the PLCnext application. |
| FirmwareIncompatible | The firmware version does not match the requirements of the PLCnext application. |
| WrongIdentifier | Verification of the PLCnext application identifier failed when installing the application. |
| InvalidIdentifierFormat | The identifier format is invalid. |
| AppPartActive | Application part is active. |
| AppPartNotActive | Application part is not active. |
| MultiPartDefinition | Multiple parts are defined. |
| AppConfigError | An application configuration error has occurred. |
| InstallationModeActive | Installation mode is active. |
| InstallationModeInactive | Installation mode is inactive. |
| RestartScheduled | A restart is scheduled. |
| DuplicatedEntry | There is a duplicated entry. |
| InconsistentConfig | Configuration is inconsistent. |
| UndefinedPlcnextService | The PLCnext service is undefined. |
| ServiceSubscribingError | An error occurred while subscribing to a service. |
| UndefinedAppLicenseType | The application license type is undefined. |
| InvalidAppLicense | The application license is invalid. |
| AppVersionParseError | While parsing the application version. |
| AppVersionIncompatible | The application version is incompatible. |
| AppUpdateError | An error occurred during the application update. |
| PlcStartStopError | tbd |
| DiscontinuedAppPart | App part has beem discontinued and is not supported any more |
| AppManagerBusy | The AppManager is busy |
| OciContainerPartError | An error occurred in the oci container part |
| InvalidAppSignature | App has no valid signature |
| InvalidConfigError | Configuration has invalid content |
| WebConfigError | Indicates an error while processing the web configuration |
|
strong |
Bit field that indicates the App Manager state and related flags.
State vs. flags: The lower six bits (Arp.Services.AppManager.Services.AppManagerStatus.StateMask) encode the primary manager state (e.g., Arp.Services.AppManager.Services.AppManagerStatus.Ready, Arp.Services.AppManager.Services.AppManagerStatus.InstallingApp). The remaining bits are flags (Arp.Services.AppManager.Services.AppManagerStatus.FlagsMask), such as Arp.Services.AppManager.Services.AppManagerStatus.InstallationModeEnabled, Arp.Services.AppManager.Services.AppManagerStatus.RestartRequired, and Arp.Services.AppManager.Services.AppManagerStatus.InstallError.
Masking pattern: To read the primary state, apply Arp.Services.AppManager.Services.AppManagerStatus.StateMask to the value. To test a flag, bitwise-and the value with the specific flag and compare against the flag value.
| Enumerator | |
|---|---|
| None | AppManager not initialized yet. No actions possible. |
| Ready | The AppManager is set up and ready to use. |
| InstallingApp | The AppManager is currently installing a PLCnext application. |
| UninstallingApp | The AppManager is currently uninstalling a PLCnext application. |
| StartingApp | The AppManager is currently starting a PLCnext application. |
| StoppingApp | The AppManager is currently stopping a PLCnext application. |
| Initializing | The AppManager is currently initializing its system. |
| VerifyingAppSignature | The AppManager is currently verifying app signature. |
| InstallationModeEnabled | This bit is set if the installation mode is enabled. |
| RestartRequired | This bit is set if at least one App needs a restart to work properly. |
| InstallError | Set if an error occurred while installing or uninstalling a PLCnext Technology Application. |
| StateMask | Use this mask (0x3F) to extract the primary Arp.Services.AppManager.Services.AppManagerStatus state. |
| FlagsMask | Use this entry to unmask the flags portion of this AppManager status. |
|
strong |
Bit field that indicates the status of a PLCnext application and related flags.
State vs. flags: The lower six bits (Arp.Services.AppManager.Services.AppStatus.StateMask) encode the primary application state (e.g., Arp.Services.AppManager.Services.AppStatus.Installed, Arp.Services.AppManager.Services.AppStatus.Starting, Arp.Services.AppManager.Services.AppStatus.Started). The remaining bits are flags (Arp.Services.AppManager.Services.AppStatus.FlagsMask) that can be combined with the state, such as Arp.Services.AppManager.Services.AppStatus.RestartRequired, Arp.Services.AppManager.Services.AppStatus.StartError, and Arp.Services.AppManager.Services.AppStatus.StopError.
Masking pattern: To read the primary state, apply Arp.Services.AppManager.Services.AppStatus.StateMask to the value. To test a flag, bitwise-and the value with the specific flag and compare against the flag value.
| Enumerator | |
|---|---|
| None | Not specified. |
| Installed | The PLCnext Technology App is installed. This is an initial app status on installation, after successful installation the app status will change to Arp.Services.AppManager.Services.AppStatus.Stopped |
| Starting | Indicates that the PLCnext Technology App is currently starting asynchronously. |
| Started | The PLCnext application is started. |
| Stopping | Indicates that the PLCnext Technology App is currently stopping asynchronously. |
| Stopped | The PLCnext application is currently stopped. |
| Uninstalling | The PLCnext application is being uninstalled. |
| RestartRequired | The PLCnext application has an error. |
| StartError | This bit is set if an error has occurred during the last start operation of the PLCnext Technology App. |
| StopError | This bit is set if an error has occurred during the last stop operation of the PLCnext Technology App. |
| StateMask | Use this mask (0x3F) to extract the primary Arp.Services.AppManager.Services.AppStatus state. |
| FlagsMask | Use this mask to extract the flags portion of an Arp.Services.AppManager.Services.AppStatus value. |