mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request #1121 from charithag/master
Adding data archival configurations (missed from #977)
This commit is contained in:
commit
c05f1c4c6e
@ -92,6 +92,31 @@
|
|||||||
<Enable>true</Enable>
|
<Enable>true</Enable>
|
||||||
<ExpiryTime>86400</ExpiryTime>
|
<ExpiryTime>86400</ExpiryTime>
|
||||||
</CertificateCacheConfiguration>
|
</CertificateCacheConfiguration>
|
||||||
|
<ArchivalConfiguration>
|
||||||
|
<DataSourceConfiguration>
|
||||||
|
<JndiLookupDefinition>
|
||||||
|
<Name>jdbc/DM_ARCHIVAL_DS</Name>
|
||||||
|
</JndiLookupDefinition>
|
||||||
|
</DataSourceConfiguration>
|
||||||
|
<ArchivalTask>
|
||||||
|
<Enabled>false</Enabled>
|
||||||
|
<TaskClass>org.wso2.carbon.device.mgt.core.task.impl.ArchivalTask</TaskClass>
|
||||||
|
<!-- Cron expression to run the task at specified time -->
|
||||||
|
<CronExpression>0 0 0 1/1 * ? *</CronExpression>
|
||||||
|
<!-- How many days of data should we keep in transactional tables? Must be in number of days -->
|
||||||
|
<RetentionPeriod>30</RetentionPeriod>
|
||||||
|
<ExecutionBatchSize>1000</ExecutionBatchSize>
|
||||||
|
<PurgingTask>
|
||||||
|
<Enabled>false</Enabled>
|
||||||
|
<TaskClass>org.wso2.carbon.device.mgt.core.task.impl.ArchivedDataDeletionTask</TaskClass>
|
||||||
|
<!-- Cron expression to run the task at specified time -->
|
||||||
|
<CronExpression>0 0 3 1/1 * ? *</CronExpression>
|
||||||
|
<!-- After this number of days, data will be permanently deleted from archival tables.
|
||||||
|
Data retention period must be in number of DAYS -->
|
||||||
|
<RetentionPeriod>365</RetentionPeriod>
|
||||||
|
</PurgingTask>
|
||||||
|
</ArchivalTask>
|
||||||
|
</ArchivalConfiguration>
|
||||||
<OperationAnalyticsConfiguration>
|
<OperationAnalyticsConfiguration>
|
||||||
<isEnabled>false</isEnabled>
|
<isEnabled>false</isEnabled>
|
||||||
<PublishOperationResponse>false</PublishOperationResponse>
|
<PublishOperationResponse>false</PublishOperationResponse>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user