Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.controller.core.ControllerConstants Class Reference

List of all members.

Static Public Member Functions

final String getSaveFile (String resource)

Static Public Attributes

final int DEFAULT_PORT = 25322
final String DEFAULT_IP = "0.0.0.0"
final int DEFAULT_BACKLOG_SIZE = 10
final String SHUTDOWN = "CJDBC_SHUTDOWN"
final String DEFAULT_BACKUP_DIR
final String C_JDBC_CONTROLLER_DTD_FILE = "c-jdbc-controller.dtd"
final int DEFAULT_CONTROLLER_WORKER_THREAD_SLEEP_TIME = 15000
final boolean JMX_ENABLE = false
final boolean ADD_DRIVER_ENABLE = false
final String DATABASE_DEFAULT_CHECKPOINT = "last"
final String DEFAULT_CONFIG_FILE = "controller.xml"
final String LOG4J_RESOURCE = "/log4j.properties"
final String DEFAULT_LOG_DIR_NAME = "log"
final String REPORT_LOCATION
final String REPORT_FILE = "cjdbc.report"
final String C_JDBC_DRIVER_JAR_FILE = "/c-jdbc-driver.jar"
final int AUTO_ENABLE_TRUE = 0
final int AUTO_ENABLE_FALSE = 1
final int AUTO_ENABLE_FORCE = 2
final int AUTO_ENABLE_BACKEND = AUTO_ENABLE_TRUE

Detailed Description

Constants relative to C-JDBC controller.

Author:
Mathieu Peltier

Nicolas Modrzyk

Emmanuel Cecchet

Duncan Smith

Version:
1.0

Definition at line 39 of file ControllerConstants.java.


Member Function Documentation

final String org.objectweb.cjdbc.controller.core.ControllerConstants.getSaveFile String  resource  )  [static]
 

Return default path and name for saving of configuration file

Parameters:
resource name of the resource to get save file for
Returns:
path

Definition at line 105 of file ControllerConstants.java.

00106   {
00107     URL url = ControllerConstants.class.getResource("/" + DEFAULT_CONFIG_FILE);
00108     File dir = (new File(url.getFile())).getParentFile();
00109     return dir.getPath() + File.separator + resource + "-saved.xml";
00110   }


Member Data Documentation

final boolean org.objectweb.cjdbc.controller.core.ControllerConstants.ADD_DRIVER_ENABLE = false [static]
 

Add Driver enable by default

Definition at line 71 of file ControllerConstants.java.

final int org.objectweb.cjdbc.controller.core.ControllerConstants.AUTO_ENABLE_BACKEND = AUTO_ENABLE_TRUE [static]
 

Auto Enable Backend default

Definition at line 120 of file ControllerConstants.java.

final int org.objectweb.cjdbc.controller.core.ControllerConstants.AUTO_ENABLE_FALSE = 1 [static]
 

Do not enable any backend when starting controller

Definition at line 115 of file ControllerConstants.java.

final int org.objectweb.cjdbc.controller.core.ControllerConstants.AUTO_ENABLE_FORCE = 2 [static]
 

Restore the state from an existing recovery log

Definition at line 117 of file ControllerConstants.java.

final int org.objectweb.cjdbc.controller.core.ControllerConstants.AUTO_ENABLE_TRUE = 0 [static]
 

Enable all backend from their last known state at controller start

Definition at line 113 of file ControllerConstants.java.

final String org.objectweb.cjdbc.controller.core.ControllerConstants.C_JDBC_CONTROLLER_DTD_FILE = "c-jdbc-controller.dtd" [static]
 

C-JDBC-Controller DTD file name (must be found in classpath).

Definition at line 59 of file ControllerConstants.java.

final String org.objectweb.cjdbc.controller.core.ControllerConstants.C_JDBC_DRIVER_JAR_FILE = "/c-jdbc-driver.jar" [static]
 

Name of the C-JDBC JAR file (must be found in classpath). This information is used to find the drivers directory.

Definition at line 97 of file ControllerConstants.java.

final String org.objectweb.cjdbc.controller.core.ControllerConstants.DATABASE_DEFAULT_CHECKPOINT = "last" [static]
 

Checkpoint to take by default

Definition at line 74 of file ControllerConstants.java.

final int org.objectweb.cjdbc.controller.core.ControllerConstants.DEFAULT_BACKLOG_SIZE = 10 [static]
 

Default backlog size for driver connections.

Definition at line 48 of file ControllerConstants.java.

final String org.objectweb.cjdbc.controller.core.ControllerConstants.DEFAULT_BACKUP_DIR [static]
 

Initial value:

 ".."
                                                                              + File.separator
                                                                              + "backup"
Backup directory

Definition at line 54 of file ControllerConstants.java.

final String org.objectweb.cjdbc.controller.core.ControllerConstants.DEFAULT_CONFIG_FILE = "controller.xml" [static]
 

Default configuration file

Definition at line 77 of file ControllerConstants.java.

final int org.objectweb.cjdbc.controller.core.ControllerConstants.DEFAULT_CONTROLLER_WORKER_THREAD_SLEEP_TIME = 15000 [static]
 

Default sleep time in ms for a controller worker thread. If no job is ready after this time, the thread dies.

Definition at line 65 of file ControllerConstants.java.

final String org.objectweb.cjdbc.controller.core.ControllerConstants.DEFAULT_IP = "0.0.0.0" [static]
 

Default IP address to bind controller to

Definition at line 45 of file ControllerConstants.java.

final String org.objectweb.cjdbc.controller.core.ControllerConstants.DEFAULT_LOG_DIR_NAME = "log" [static]
 

Default log directory name (will be stored into CJDBC_HOME directory).

Definition at line 83 of file ControllerConstants.java.

final int org.objectweb.cjdbc.controller.core.ControllerConstants.DEFAULT_PORT = 25322 [static]
 

Default controller port number value.

Definition at line 42 of file ControllerConstants.java.

final boolean org.objectweb.cjdbc.controller.core.ControllerConstants.JMX_ENABLE = false [static]
 

JMX Enable by default

Definition at line 68 of file ControllerConstants.java.

final String org.objectweb.cjdbc.controller.core.ControllerConstants.LOG4J_RESOURCE = "/log4j.properties" [static]
 

Log4j property file resource (must be found in classpath).

Definition at line 80 of file ControllerConstants.java.

final String org.objectweb.cjdbc.controller.core.ControllerConstants.REPORT_FILE = "cjdbc.report" [static]
 

Report file

Definition at line 91 of file ControllerConstants.java.

final String org.objectweb.cjdbc.controller.core.ControllerConstants.REPORT_LOCATION [static]
 

Initial value:

 ".."
                                                                              + File.separator
                                                                              + DEFAULT_LOG_DIR_NAME
Default report location

Definition at line 86 of file ControllerConstants.java.

final String org.objectweb.cjdbc.controller.core.ControllerConstants.SHUTDOWN = "CJDBC_SHUTDOWN" [static]
 

This allow to send a command from the ControllerShutdown class

Definition at line 51 of file ControllerConstants.java.


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:03:43 2005 for C-JDBC by  doxygen 1.3.9.1