KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jalisto > se > api > JalistoProperties


1 /*
2  * Jalisto - JAva LIght STOrage
3  * Copyright (C) 2000-2005 Xcalia http://www.xcalia.com
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
18  *
19  * Xcalia
20  * 71, rue Desnouettes
21  * 75014 Paris - France
22  * http://www.xcalia.com
23  */

24 package org.objectweb.jalisto.se.api;
25
26 import java.util.Collection JavaDoc;
27 import java.io.Serializable JavaDoc;
28
29 public interface JalistoProperties extends Serializable JavaDoc {
30     String JavaDoc getName();
31
32     String JavaDoc getProperty(String JavaDoc key);
33
34     Collection JavaDoc getTraceModuleNames();
35
36     String JavaDoc getPropertiesPath();
37
38     int getInitialSize();
39
40     int getOidPageSize();
41
42     int getOidTableSize();
43
44     int getAdditionalSpace();
45
46     int getObjectCacheSize();
47
48     int getPageCacheSize();
49
50     int getMBeanJmxPort();
51
52     double getCacheClearPourcent();
53
54     short getClassPageSize();
55
56     short getSystemPageSize();
57
58     String JavaDoc getImplementation();
59
60     boolean isMonoImplementation();
61
62     boolean isReadOnlyImplementation();
63
64     boolean isMultiImplementation();
65
66     boolean isKeepingInMemory();
67
68     boolean isCleanLog();
69
70     boolean allowsSpecialFunctionnalities();
71
72     short getInstancePageSize();
73
74     int getKeyLength();
75
76     String JavaDoc getCommunicationFactoryClassName();
77
78     String JavaDoc getLogFileName();
79
80     boolean isTraceEnable();
81
82     JalistoProperties getClone();
83
84     String JavaDoc getDbFileFullName();
85
86     String JavaDoc getOidDbFilePath();
87
88     String JavaDoc getSystemDbFilePath();
89
90     int getInstanceDbFileNumber();
91
92     String JavaDoc getInstanceDbFilePathAt(int index);
93
94     Collection JavaDoc getKeys();
95
96     void compareProperties(JalistoProperties oldProps);
97
98     void checkProperty(JalistoProperties oldProps, String JavaDoc property);
99
100     String JavaDoc[] getPathes();
101
102     void setProperty(String JavaDoc key, String JavaDoc property);
103
104     String JavaDoc getServerPropertiesPath();
105
106     String JavaDoc getHost();
107
108     int getPort();
109
110     String JavaDoc getInternalFactoryClass();
111
112
113     public final static int SYSTEM_INDEX = 0;
114     public final static int OID_INDEX = 1;
115     public final static int INDEXES_INDEX = 1;
116
117     public final static String JavaDoc MONO_IMPLEMENTATION = "mono";
118     public final static String JavaDoc READONLY_IMPLEMENTATION = "readonly";
119     public final static String JavaDoc MULTI_IMPLEMENTATION = "multi";
120     public final static String JavaDoc REMOTE_IMPLEMENTATION = "remote";
121
122
123     public final static String JavaDoc NAME_KEY = "name";
124     public final static String JavaDoc IMPLEMENTATION_KEY = "userMode";
125     public final static String JavaDoc DATABASE_FILES_PATHS_KEY = "dbFilesPaths";
126     public final static String JavaDoc DATABASE_INITIAL_SIZE_KEY = "dbInitialSize";
127     public final static String JavaDoc CACHE_IMPLEMENTATION_KEY = "cacheClass";
128     public final static String JavaDoc OBJECT_CACHE_SIZE_KEY = "objectCacheSize";
129     public final static String JavaDoc PAGE_CACHE_SIZE_KEY = "pageCacheSize";
130     public final static String JavaDoc CACHE_CLEAR_POURCENT_KEY = "cacheClearPourcent";
131     public final static String JavaDoc OIDTABLE_SIZE_KEY = "oidTableSize";
132     public final static String JavaDoc OBJECT_INST_PAGE_SIZE_KEY = "instancePageSize";
133     public final static String JavaDoc OBJECT_SYST_PAGE_SIZE_KEY = "systemPageSize";
134     public final static String JavaDoc OBJECT_CLASS_PAGE_SIZE_KEY = "classPageSize";
135     public final static String JavaDoc OBJECT_OID_PAGE_SIZE_KEY = "oidPageSize";
136     public final static String JavaDoc CONCURRENCY_MODE_KEY = "concurrencyMode";
137     public final static String JavaDoc TIME_OUT_KEY = "timeOut"; // not documented
138
public final static String JavaDoc ADD_SPACE_KEY = "addSpace"; // not documented
139
public final static String JavaDoc INTERNAL_KEY_MAX_SIZE_KEY = "internalKeyMaxSize"; // not documented
140
public final static String JavaDoc ALLOWS_SPECIAL_FUNCTIONNALITIES_KEY = "allowsSpecialFunctionnalities"; // not documented
141
public final static String JavaDoc PHYSICAL_ACCESS_CLASS_KEY = "physicalClass";
142     public final static String JavaDoc INTERNAL_FACTORY_CLASS_KEY = "internalFactoryClass"; // not documented
143
public final static String JavaDoc COMMUNICATION_FACTORY_CLASS_KEY = "communicationFactoryClass";
144     public final static String JavaDoc QUERY_MANAGER_CLASS_KEY = "queryManagerClass";
145     public final static String JavaDoc MBEAN_SERVER_CLASS_KEY = "jalistoMBeanServerClass"; // not documented
146
public final static String JavaDoc MBEAN_JMX_SERVER_PORT_KEY = "MBeanHtmlServerPort"; // not documented
147
public final static String JavaDoc KEEP_IN_MEMORY_KEY = "keepInMemory";
148     public final static String JavaDoc CLEAN_LOG_KEY = "cleanLog"; // not documented
149
public final static String JavaDoc LOG_FILE_KEY = "logFile";
150     public final static String JavaDoc TRACE_KEY = "trace";
151 }
152
Popular Tags