]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org/argeo/node/RepoConf.java
Prepare next development cycle
[lgpl/argeo-commons.git] / org / argeo / node / RepoConf.java
1 package org.argeo.node;
2
3 /** JCR repository configuration */
4 public enum RepoConf implements EnumAD {
5 /** Repository type */
6 type("localfs"),
7 /** Default workspace */
8 @Deprecated
9 defaultWorkspace("main"),
10 /** Database URL */
11 dburl(null),
12 /** Database user */
13 dbuser(null),
14 /** Database password */
15 dbpassword(null),
16
17 /** The identifier (can be an URL locating the repo) */
18 labeledUri(null),
19 //
20 // JACKRABBIT SPECIFIC
21 //
22 /** Maximum database pool size */
23 maxPoolSize(10),
24 /** Maximum cache size in MB */
25 @Deprecated
26 maxCacheMB(null),
27 /** Bundle cache size in MB */
28 bundleCacheMB(8),
29 /** Extractor pool size */
30 extractorPoolSize(0),
31 /** Search cache size */
32 searchCacheSize(1000),
33 /** Max volatile index size */
34 maxVolatileIndexSize(1048576);
35
36 /** The default value. */
37 private Object def;
38 private String oid;
39
40 RepoConf(String oid, Object def) {
41 this.oid = oid;
42 this.def = def;
43 }
44
45 RepoConf(Object def) {
46 this.def = def;
47 }
48
49 public Object getDefault() {
50 return def;
51 }
52
53 @Override
54 public String getID() {
55 if (oid != null)
56 return oid;
57 return EnumAD.super.getID();
58 }
59
60 public static class OCD extends EnumOCD<RepoConf> {
61 public OCD(String locale) {
62 super(RepoConf.class, locale);
63 }
64 }
65
66 }