blob: be57165aad112bee27093f6f68c0dd826c2cab21 [file] [log] [blame]
Jan Willem Janssene66cedb2012-11-30 12:36:31 +00001Apache Felix User Admin File-based store
2Copyright 2012 The Apache Software Foundation
3
4This bundle provides a file-based store for use with the Felix UserAdmin
5service. It uses a binary file-format to persist the role information. This
6file will always be written in the data area of the bundle and be called
7"ua_repo.dat".
8
9The file-based store service this bundle provides can be configured at
10runtime by using the service PID "org.apache.felix.useradmin.filestore". The
11configuration options recognized by this service are:
12
13"background.write.disabled"
14 by default, all changes made to the UserAdmin repository are flushed to
15 disk. By setting this value to "false", this no longer will happen for each
16 change, but only upon stopping of the service. This value is optional and
17 defaults to "false";
18"background.write.delay.value"
19 denotes the period after which the changes should be persisted to disk. If
20 other changes to the repository occur during this period, the period will
21 start over. This value is optional and defaults to "500";
22"background.write.delay.timeunit"
23 denotes the time unit for "background.write.delay.value". This value is
24 optional and defaults to "milliseconds". Possible values are: "days",
25 "hours", "minutes", "seconds", "milliseconds", "microseconds" and
26 "nanoseconds".
27
28Alternatively, one can also supply the above mentioned configuration keys
29prefixed with "org.apache.felix.useradmin.filestore." as system properties.
30For example by adding the following to your JVM arguments:
31
32 -Dorg.apache.felix.useradmin.filestore.background.write.disabled=true
33
34will disable persisting the changes on each change of the UserAdmin roles.
35
36However, using system properties will imply that only a single store can be
37configured on a system (which could be a sensible default for some
38situations)!