org.objectweb.cjdbc.controller.core
Class ControllerConstants

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.core.ControllerConstants

public class ControllerConstants
extends java.lang.Object

Constants relative to C-JDBC controller.

Version:
1.0
Author:
Mathieu Peltier , Nicolas Modrzyk , Emmanuel Cecchet , Duncan Smith

Field Summary
static boolean ADD_DRIVER_ENABLE
          Add Driver enable by default
static int AUTO_ENABLE_BACKEND
          Auto Enable Backend default
static int AUTO_ENABLE_FALSE
          Do not enable any backend when starting controller
static int AUTO_ENABLE_FORCE
          Restore the state from an existing recovery log
static int AUTO_ENABLE_TRUE
          Enable all backend from their last known state at controller start
static java.lang.String C_JDBC_CONTROLLER_DTD_FILE
          C-JDBC-Controller DTD file name (must be found in classpath).
static java.lang.String C_JDBC_DRIVER_JAR_FILE
          Name of the C-JDBC JAR file (must be found in classpath).
static java.lang.String DATABASE_DEFAULT_CHECKPOINT
          Checkpoint to take by default
static int DEFAULT_BACKLOG_SIZE
          Default backlog size for driver connections.
static java.lang.String DEFAULT_BACKUP_DIR
          Backup directory
static java.lang.String DEFAULT_CONFIG_FILE
          Default configuration file
static int DEFAULT_CONTROLLER_WORKER_THREAD_SLEEP_TIME
          Default sleep time in ms for a controller worker thread.
static java.lang.String DEFAULT_IP
          Default IP address to bind controller to.
static java.lang.String DEFAULT_LOG_DIR_NAME
          Default log directory name (will be stored into CJDBC_HOME directory).
static int DEFAULT_PORT
          Default controller port number value.
static boolean JMX_ENABLE
          JMX Enable by default
static java.lang.String LOG4J_RESOURCE
          Log4j property file resource (must be found in classpath).
static java.lang.String REPORT_FILE
          Report file
static java.lang.String REPORT_LOCATION
          Default report location
static java.lang.String SHUTDOWN
          This allow to send a command from the ControllerShutdown class
 
Constructor Summary
ControllerConstants()
           
 
Method Summary
static java.lang.String getSaveFile(java.lang.String resource)
          Return default path and name for saving of configuration file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
Default controller port number value.

See Also:
Constant Field Values

DEFAULT_IP

public static final java.lang.String DEFAULT_IP
Default IP address to bind controller to. InetAddress.anyLocalAddress() would be more IPv12 compliant

See Also:
Constant Field Values

DEFAULT_BACKLOG_SIZE

public static final int DEFAULT_BACKLOG_SIZE
Default backlog size for driver connections.

See Also:
Constant Field Values

SHUTDOWN

public static final java.lang.String SHUTDOWN
This allow to send a command from the ControllerShutdown class

See Also:
Constant Field Values

DEFAULT_BACKUP_DIR

public static final java.lang.String DEFAULT_BACKUP_DIR
Backup directory


C_JDBC_CONTROLLER_DTD_FILE

public static final java.lang.String C_JDBC_CONTROLLER_DTD_FILE
C-JDBC-Controller DTD file name (must be found in classpath).

See Also:
Constant Field Values

DEFAULT_CONTROLLER_WORKER_THREAD_SLEEP_TIME

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

See Also:
Constant Field Values

JMX_ENABLE

public static final boolean JMX_ENABLE
JMX Enable by default

See Also:
Constant Field Values

ADD_DRIVER_ENABLE

public static final boolean ADD_DRIVER_ENABLE
Add Driver enable by default

See Also:
Constant Field Values

DATABASE_DEFAULT_CHECKPOINT

public static final java.lang.String DATABASE_DEFAULT_CHECKPOINT
Checkpoint to take by default

See Also:
Constant Field Values

DEFAULT_CONFIG_FILE

public static final java.lang.String DEFAULT_CONFIG_FILE
Default configuration file

See Also:
Constant Field Values

LOG4J_RESOURCE

public static final java.lang.String LOG4J_RESOURCE
Log4j property file resource (must be found in classpath).

See Also:
Constant Field Values

DEFAULT_LOG_DIR_NAME

public static final java.lang.String DEFAULT_LOG_DIR_NAME
Default log directory name (will be stored into CJDBC_HOME directory).

See Also:
Constant Field Values

REPORT_LOCATION

public static final java.lang.String REPORT_LOCATION
Default report location


REPORT_FILE

public static final java.lang.String REPORT_FILE
Report file

See Also:
Constant Field Values

C_JDBC_DRIVER_JAR_FILE

public static final java.lang.String C_JDBC_DRIVER_JAR_FILE
Name of the C-JDBC JAR file (must be found in classpath). This information is used to find the drivers directory.

See Also:
Constant Field Values

AUTO_ENABLE_TRUE

public static final int AUTO_ENABLE_TRUE
Enable all backend from their last known state at controller start

See Also:
Constant Field Values

AUTO_ENABLE_FALSE

public static final int AUTO_ENABLE_FALSE
Do not enable any backend when starting controller

See Also:
Constant Field Values

AUTO_ENABLE_FORCE

public static final int AUTO_ENABLE_FORCE
Restore the state from an existing recovery log

See Also:
Constant Field Values

AUTO_ENABLE_BACKEND

public static final int AUTO_ENABLE_BACKEND
Auto Enable Backend default

See Also:
Constant Field Values
Constructor Detail

ControllerConstants

public ControllerConstants()
Method Detail

getSaveFile

public static final java.lang.String getSaveFile(java.lang.String resource)
Return default path and name for saving of configuration file

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


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.