]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.common/src/org/simantics/db/common/internal/config/InternalClientConfig.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / internal / config / InternalClientConfig.java
1 package org.simantics.db.common.internal.config;\r
2 \r
3 import java.io.File;\r
4 \r
5 import org.simantics.db.common.internal.Activator;\r
6 import org.simantics.db.common.utils.Logger;\r
7 \r
8 /**\r
9  * @author Tuukka Lehtonen\r
10  * @see Logger\r
11  */\r
12 public class InternalClientConfig {\r
13 \r
14         /**\r
15          * Name of the DB client temporary data directory. \r
16          */\r
17         public final static String DB_CLIENT_TEMP_DIR_NAME = "temp";\r
18 \r
19         /**\r
20          * Name of the DB client log file. \r
21          */\r
22         public final static String DB_CLIENT_LOG_FILE_NAME = "db-client.log";\r
23 \r
24         /**\r
25          * The directory used for temporary data by the database client. If the\r
26          * program if being ran in an OSGi container, {@link Activator} will attempt\r
27          * to configure this path based on the current OSGi instance area location.\r
28          * \r
29          * @see Activator\r
30          */\r
31         public static File DB_CLIENT_TEMP_DIR = new File(DB_CLIENT_TEMP_DIR_NAME);\r
32 \r
33         /**\r
34          * A relative or full absolute path to the log file created by\r
35          * {@link Logger}. Used statically for initialization in {@link Logger} and\r
36          * therefore must be configured prior to referencing {@link Logger}. If the\r
37          * program if being ran in an OSGi container, {@link Activator} will attempt\r
38          * to configure this path based on the current OSGi instance area location.\r
39          * \r
40          * @see Activator\r
41          * @see Logger\r
42          */\r
43         public static String DB_CLIENT_LOG_FILE = DB_CLIENT_LOG_FILE_NAME;\r
44 \r
45 }\r