All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xworker.app.init.InitIndex.xer.txt Maven / Gradle / Ivy

The newest version!
^1729914884765
@
sname
InitIndex
slabel
InitIndex
sgroup
xworker.app
sdescritporForNewThing
xworker.message.MessageWithToolbar
Sdescription
#$@text#$@

XWorker的APP的总初始化索引,初始化时会包含子索引。

初始化方法

    凡是注册到该索引的,或者注册到的索引是注册到本索引的,那么都会被执行初始化。

    执行初始化是执行将要初始化的事物的init方法,并记录到数据库中,会把事物的修改时间保存,如果数据库中的记录中的事物修改时间和当前事物是一致的,那么则不会执行初始化。

避免重复初始化

    初始化操作是有可能执行多次的,因此每一个初始化脚本应自行解决重复初始化的问题。

    同样,如果想再次执行初始化,那么修改保存事物,这样可以更新器最后修改时间。

定期初始化

    RefreshTaskTask定时任务会定期执行初始化。

   

#$@text#$@ sen_label InitIndex sdescriptors xworker.lang.util.ThingIndex sinheritDescription false sth_createIndex true sth_registThing child|xworker.lang.util.ThingIndex sth_registMyChilds false Sen_description #$@text#$@

The total initialization index of XWorker's APP will include sub-indexes during initialization.

Initialization method

Anyone registered to this index, or the registered index is registered to this index, will be initialized.

Performing initialization is to execute the init method of the thing to be initialized and record it in the database. The modification time of the thing will be saved. If the modification time of the thing in the record in the database is the same as the current thing consistent, then no initialization will be performed.

Avoid repeated initialization

The initialization operation may be performed multiple times, so each initialization script should solve the problem of repeated initialization on its own.

Similarly, if you want to perform initialization again, then modify the save transaction so that the last modification time of the device can be updated.

Periodic initialization

The RefreshTaskTask scheduled task will be initialized regularly.

#$@text#$@ sth_mark false




© 2015 - 2025 Weber Informatics LLC | Privacy Policy