org.objectweb.cjdbc.controller
Class ControllerConstants

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.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 boolean AUTO_ENABLE_BACKEND
          Auto Enable Backend default
static java.lang.String C_JDBC_DRIVER_JAR_FILE
          Name of the C-JDBC JAR file (must be found in classpath).
static int CONTROLLER_SHUTDOWN_FAST
          Shutdown Mode Fast: Finish transaction and shutdown
static int CONTROLLER_SHUTDOWN_IMMEDIATE
          Shutdown Mode Immediate: Does not wait for end of transaction and kill all connections Recovery will be needed
static int CONTROLLER_SHUTDOWN_SMART
          Shutdown Mode Smart: Wait for all clients to disconnect
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_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_HOST
          Default controller host name (only used by the console).
static java.lang.String DEFAULT_IP
          Default IP address to bind controller to
static java.lang.String DEFAULT_NAME
          Default name used to bind the controller in the RMI registry.
static int DEFAULT_PORT
          Default controller port number value.
static int DEFAULT_SHUTDOWN_MODE
          Default shutdown mode
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 NAME_PREFIX
          Bind name prefix of the controller name in the RMI registry.
static java.lang.String REPORT_FILE
          Report file
static java.lang.String SHUTDOWN
          This allow to send a command from the ControllerShutdown class
static java.lang.String VERSION
          C-JDBC version.
 
Constructor Summary
ControllerConstants()
           
 
Method Summary
static int getMajorVersion()
          C-JDBC major version
static int getMinorVersion()
          C-JDBC minor version
static java.lang.String getSaveConfigurationFile()
          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

VERSION

public static final java.lang.String VERSION
C-JDBC version.

See Also:
Constant Field Values

DEFAULT_HOST

public static final java.lang.String DEFAULT_HOST
Default controller host name (only used by the console).

See Also:
Constant Field Values

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

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

CONTROLLER_SHUTDOWN_SMART

public static final int CONTROLLER_SHUTDOWN_SMART
Shutdown Mode Smart: Wait for all clients to disconnect

See Also:
Constant Field Values

CONTROLLER_SHUTDOWN_FAST

public static final int CONTROLLER_SHUTDOWN_FAST
Shutdown Mode Fast: Finish transaction and shutdown

See Also:
Constant Field Values

CONTROLLER_SHUTDOWN_IMMEDIATE

public static final int CONTROLLER_SHUTDOWN_IMMEDIATE
Shutdown Mode Immediate: Does not wait for end of transaction and kill all connections Recovery will be needed

See Also:
Constant Field Values

DEFAULT_SHUTDOWN_MODE

public static final int DEFAULT_SHUTDOWN_MODE
Default shutdown mode

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_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

DEFAULT_NAME

public static final java.lang.String DEFAULT_NAME
Default name used to bind the controller in the RMI registry.

See Also:
Constant Field Values

NAME_PREFIX

public static final java.lang.String NAME_PREFIX
Bind name prefix of the controller name in the RMI registry.

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

AUTO_ENABLE_BACKEND

public static final boolean AUTO_ENABLE_BACKEND
Auto Enable Backend 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

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
Constructor Detail

ControllerConstants

public ControllerConstants()
Method Detail

getMajorVersion

public static final int getMajorVersion()
C-JDBC major version

Returns:
major version

getMinorVersion

public static final int getMinorVersion()
C-JDBC minor version

Returns:
minor version

getSaveConfigurationFile

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

Returns:
path


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