]> git.argeo.org Git - lgpl/argeo-commons.git/blob - jcr/org.argeo.cms.jcr/src/org/argeo/cms/internal/jcr/RepoConf.java
Improve migration
[lgpl/argeo-commons.git] / jcr / org.argeo.cms.jcr / src / org / argeo / cms / internal / jcr / RepoConf.java
1 package org.argeo.cms.internal.jcr;
2
3 import org.argeo.api.cms.CmsConstants;
4
5 /** JCR repository configuration */
6 public enum RepoConf {
7 /** Repository type */
8 type("h2"),
9 /** Default workspace */
10 defaultWorkspace(CmsConstants.SYS_WORKSPACE),
11 /** Database URL */
12 dburl(null),
13 /** Database user */
14 dbuser(null),
15 /** Database password */
16 dbpassword(null),
17
18 /** The identifier (can be an URL locating the repo) */
19 labeledUri(null),
20 //
21 // JACKRABBIT SPECIFIC
22 //
23 /** Maximum database pool size */
24 maxPoolSize(10),
25 /** Maximum cache size in MB */
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 /** Cluster id (if appropriate configuration) */
36 clusterId("default"),
37 /** Indexes base path */
38 indexesBase(null);
39
40 /** The default value. */
41 private Object def;
42
43 RepoConf(String oid, Object def) {
44 this.def = def;
45 }
46
47 RepoConf(Object def) {
48 this.def = def;
49 }
50
51 public Object getDefault() {
52 return def;
53 }
54
55 }