Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 24 25 package org.objectweb.cjdbc.controller.core; 26 27 import java.io.File ; 28 import java.net.URL ; 29 30 39 public class ControllerConstants 40 { 41 42 public static final int DEFAULT_PORT = 25322; 43 44 48 public static final String DEFAULT_IP = "0.0.0.0"; 49 50 51 public static final int DEFAULT_BACKLOG_SIZE = 10; 52 53 54 public static final String SHUTDOWN = "CJDBC_SHUTDOWN"; 55 56 57 public static final String DEFAULT_BACKUP_DIR = ".." 58 + File.separator 59 + "backup"; 60 61 62 public static final String C_JDBC_CONTROLLER_DTD_FILE = "c-jdbc-controller.dtd"; 63 64 68 public static final int DEFAULT_CONTROLLER_WORKER_THREAD_SLEEP_TIME = 15000; 69 70 71 public static final boolean JMX_ENABLE = false; 72 73 74 public static final boolean ADD_DRIVER_ENABLE = false; 75 76 77 public static final String DATABASE_DEFAULT_CHECKPOINT = "last"; 78 79 80 public static final String DEFAULT_CONFIG_FILE = "controller.xml"; 81 82 83 public static final String LOG4J_RESOURCE = "/log4j.properties"; 84 85 86 public static final String DEFAULT_LOG_DIR_NAME = "log"; 87 88 89 public static final String REPORT_LOCATION = ".." 90 + File.separator 91 + DEFAULT_LOG_DIR_NAME; 92 93 94 public static final String REPORT_FILE = "cjdbc.report"; 95 96 100 public static final String C_JDBC_DRIVER_JAR_FILE = "/c-jdbc-driver.jar"; 101 102 108 public static final String getSaveFile(String resource) 109 { 110 URL url = ControllerConstants.class.getResource("/" + DEFAULT_CONFIG_FILE); 111 File dir = (new File (url.getFile())).getParentFile(); 112 return dir.getPath() + File.separator + resource + "-saved.xml"; 113 } 114 115 116 public static final int AUTO_ENABLE_TRUE = 0; 117 118 public static final int AUTO_ENABLE_FALSE = 1; 119 120 public static final int AUTO_ENABLE_FORCE = 2; 121 122 123 public static final int AUTO_ENABLE_BACKEND = AUTO_ENABLE_FALSE; 124 125 }
| Popular Tags
|