PLCnext API Documentation
22.9.0.33
|
Use this service for the retain backup handling. More...
#include <IRetainManagerService.hpp>
Public Types | |
using | Ptr = std::shared_ptr< IRetainManagerService > |
![]() | |
typedef std::shared_ptr< IRscService > | Ptr |
Public Member Functions | |
IRetainManagerService (void)=default | |
Constructs an IRetainManagerService instance. More... | |
virtual BackupResult | GenerateBackupFile ()=0 |
Generates a backup file of the retain data More... | |
virtual BackupResult | PrepareLatestBackupFileForRestoring ()=0 |
Prepares the latest backup file of retain data for restoring for the next plc 'RestoreWarm' start More... | |
![]() | |
IRscService (void)=default | |
Constructs an IRscService instance. More... | |
virtual | ~IRscService (void)=default |
Destructs this instance and frees all resouces. More... | |
Static Public Member Functions | |
static IRscServiceProxyFactory & | GetProxyFactory (void) |
![]() | |
static IRscServiceProxyFactory & | GetProxyFactory (void) |
Returns a reference to service proxy factory to create a proxy instance of the service More... | |
Use this service for the retain backup handling.
This service is defined in library Arp.Plc.Retain.
|
default |
Constructs an IRetainManagerService instance.
|
pure virtual |
Generates a backup file of the retain data
Generates a backup file of all configured retain data including a header with several information e.g. version, project name, hw name, fw version, etc. The backup file is stored in the configured retain backup path. The name of the backup file is generated from the time of creation with the suffix '_USER'. E.g.: 2020_06_02_14_44_23_User
|
pure virtual |
Prepares the latest backup file of retain data for restoring for the next plc 'RestoreWarm' start
Prepares the retain data of the lastest retain backup file based on the name, which is contained in the configured retain backup path and matched to the format defined. On the next 'RestoreWarm' start the prepared backup data is used instead of the data from the retain memory. The prepared backup will be cleared at each plc start (Cold, Warm, Hot, RestoreWarm), DCG and PlcReset.