The file-check-period Element"

From Documentation
(Created page with ' {{ZKConfigurationReferencePageHeader}} [Default: <i>none</i>] [Since 3.6.1] [deprecated 5.0.3] It specifies whether to generate UUID based on ID. It is useful for testing p…')
 
m
Line 1: Line 1:
{{ZKConfigurationReferencePageHeader}}
+
{{ZKConfigurationReferencePageHeader}}
  
  [Default: <i>none</i>]
+
'''Syntax:'''
[Since 3.6.1]
+
  <file-check-perioid>''a_number''</file-check-period>
  [deprecated 5.0.3]
+
 
+
  [Default: 5]
It specifies whether to generate UUID based on ID. It is useful for testing purpose, such that the generated UUID is predictable. For example, the following causes the UUID to be generated by prefixing ID with <code>_zid_</code>.
+
 
+
It specifies the time, in seconds, to wait before checking whether a file is modified.
<source lang="xml">
+
<desktop-config>
+
For better performance, ZK has employed a cache to store parsed ZUML file. The time specified here controls how often ZK checks whether a file is modified. The larger the number the better the performance.
<id-to-uuid-prefix>_zid_</id-to-uuid-prefix>
 
</desktop-config>
 
</source>
 
 
 
Then, the following component's UUID will be <code>_zid_foo</code>.
 
 
 
<source lang="xml">
 
<textbox id="foo"/>
 
</source>
 
 
 
Notice that UUID has to be unique in the whole desktop, so the above setting might cause the application unable to run (due to replicated UUID). You can minimize the possibility of ID conflicts by prefixing with page's UUID as follows.
 
 
 
<source lang="xml">
 
<desktop-config>
 
<id-to-uuid-prefix>_zid_${page}_</id-to-uuid-prefix>
 
</desktop-config>
 
</source>
 
 
 
Then, <code>${page}</code> will be replaced with the page's UUID (if the page is available). However, since a page might still have several ID space, the UUID conflict is still possible.
 
  
 +
=Version History=
 +
{{LastUpdated}}
 +
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
| &nbsp;
 +
| &nbsp;
 +
| &nbsp;
 +
|}
 
{{ZKConfigurationReferencePageFooter}}
 
{{ZKConfigurationReferencePageFooter}}

Revision as of 14:27, 3 December 2010


The file-check-period Element


Syntax:

<file-check-perioid>a_number</file-check-period>
[Default: 5]

It specifies the time, in seconds, to wait before checking whether a file is modified.

For better performance, ZK has employed a cache to store parsed ZUML file. The time specified here controls how often ZK checks whether a file is modified. The larger the number the better the performance.

Version History

Last Update : 2010/12/03


Version Date Content
     


Last Update : 2010/12/03

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.