org.objectweb.cjdbc.controller.xml
Class DatabasesHandler

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.objectweb.cjdbc.controller.xml.DatabasesHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class DatabasesHandler
extends org.xml.sax.helpers.DefaultHandler

Parses an XML content conforming to C-JDBC.dtd and configure the given C-JDBC Controller accordingly.

Version:
1.0
Author:
Emmanuel Cecchet , Mathieu Peltier

Field Summary
private  java.util.ArrayList backendNameList
           
private  boolean backgroundParsing
           
private  long beginTimeout
           
private static java.lang.String C_JDBC_DTD_FILE
          C-JDBC DTD file name (must be found in classpath).
private  boolean caseSensitiveParsing
           
private  long commitTimeout
           
private  java.lang.String connectionManagerVLogin
           
private  Controller controller
          C-JDBC controller to setup.
private  AuthenticationManager currentAuthenticationManager
           
private  DatabaseBackend currentBackend
           
private  CreateTablePolicy currentCreateTablePolicy
           
private  CreateTableRule currentCreateTableRule
           
private  DatabaseBackendUser currentDatabaseBackendUser
           
private  DatabaseSchema currentDatabaseSchema
           
private  ErrorCheckingPolicy currentErrorCheckingPolicy
           
private  AbstractLoadBalancer currentLoadBalancer
           
private  int currentNbOfConcurrentReads
           
private  JDBCRecoveryLog currentRecoveryLog
           
private  AbstractRequestCache currentRequestCache
           
private  AbstractScheduler currentRequestScheduler
           
private  DatabaseTable currentTable
           
private  VirtualDatabase currentVirtualDatabase
           
private  VirtualDatabaseUser currentVirtualUser
           
private  WaitForCompletionPolicy currentWaitForCompletionPolicy
           
private  java.util.Hashtable dbToPrepare
          dbToPrepare is used if only a specified database has to be loaded
private static int DEFAULT_BACKLOG
          Default backlog size for the server socket.
private static long DEFAULT_BEGIN_TIMEOUT
          Default begin timeout in milliseconds.
private static long DEFAULT_COMMIT_TIMEOUT
          Default commit timeout in milliseconds.
private static int DEFAULT_MAX_CONNECTIONS
          Default maximum number of connections.
private static int DEFAULT_MAX_THREADS
          Default maximum number of threads to process connections.
private static int DEFAULT_MIN_THREADS
          Default minimum number of threads to process connections.
private static int DEFAULT_PORT
          Default port number on which clients will connect.
private static int DEFAULT_REQUEST_TIMEOUT
          Default request timeout in milliseconds.
private static long DEFAULT_ROLLBACK_TIMEOUT
          Default rollback timeout in milliseconds.
(package private) static Trace logger
          Logger instance.
private  int numberOfColumns
           
private  int requestTimeout
           
private  long rollbackTimeout
           
private  boolean skipDatabase
          setter for jumping from one VirtualDatabase definition to the next one
 
Constructor Summary
DatabasesHandler(Controller controller)
          Creates a new DatabasesHandler
 
Method Summary
 void endDocument()
          Finalizes parsing of a document.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String name)
          DatabasesHandler for end of element.
 void error(org.xml.sax.SAXParseException e)
          Handles notification of a recoverable parser error.
 void fatalError(org.xml.sax.SAXParseException e)
          Handles notification of a non-recoverable parser error.
private  void newAdminLogin(org.xml.sax.Attributes atts)
          Sets the administrator user of the currentAuthenticationManager using the parsed attributs.
private  void newAuthenticationManager(org.xml.sax.Attributes atts)
          Sets currentAuthenticationManager as a new AuthenticationManager.
private  void newBackendName(org.xml.sax.Attributes atts)
          Adds a backend name to the current backendNameList.
private  void newBackendWeight(org.xml.sax.Attributes atts)
          Sets the weight of the currentLoadBalancer using the parsed attributes.
private  void newConnectionManager(org.xml.sax.Attributes atts)
          Sets the currentRecoveryLog as new JDBCRecoveryLog using the parsed attributes.
private  void newCreateTable(org.xml.sax.Attributes atts)
          Add a CreateTable rule.
private  void newDatabaseBackend(org.xml.sax.Attributes atts)
          Sets currentBackend as a new DatabaseBackend using the parsed attributes.
private  void newDatabaseColumn(org.xml.sax.Attributes atts)
          Adds to currentTable a new DatabaseColumn using the parsed attributes.
private  void newDatabaseTable(org.xml.sax.Attributes atts)
          Sets currentTable as a new DatabaseTable using the parsed attributs.
private  void newDistribution(org.xml.sax.Attributes atts)
          Sets currentBackend as a new DatabaseBackend using the parsed attributes.
private  void newErrorChecking(org.xml.sax.Attributes atts)
          Add an ErrorChecking policy.
private  void newFailFastPoolConnectionManager(org.xml.sax.Attributes atts)
          Adds a new FailFastPoolConnectionManager to currentBackend using the parsed attributes.
private  void newFileRecoveryLog(org.xml.sax.Attributes atts)
          Sets the currentRecoveryLog as new FileRecoveryLog using the parsed attributes.
private  void newJDBCRecoveryCheckpointTable(org.xml.sax.Attributes atts)
          Sets the recovery log table create statement for the current JDBCRecoveryLog using the RecoveryLogTable parsed attributes.
private  void newJDBCRecoveryLog(org.xml.sax.Attributes atts)
          Sets the currentRecoveryLog as new JDBCRecoveryLog using the parsed attributes.
private  void newJDBCRecoveryLogTable(org.xml.sax.Attributes atts)
          Sets the recovery log table create statement for the current JDBCRecoveryLog using the RecoveryLogTable parsed attributes.
private  void newQueryCache(org.xml.sax.Attributes atts)
          Sets currentRequestCache as a new QueryCache using the parsed attributes.
private  void newQueryCacheDB(org.xml.sax.Attributes atts)
          Sets currentRequestCache as a new QueryCacheDB and currentBackend as a new DatabaseBackend using the parsed attributes.
private  void newRAIDb0LoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb0 using the parsed attributes.
private  void newRAIDb0Scheduler(org.xml.sax.Attributes atts)
          Sets currentRequestScheduler as a new RAIDb0QueryLevelScheduler using the parsed attributes.
private  void newRAIDb1ecLoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb1ec using the parsed attributes.
private  void newRAIDb1ecRoundRobinLoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb1ec_RR using the parsed attributes.
private  void newRAIDb1ecWeightedRoundRobinLoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb1ec_WRR using the parsed attributes.
private  void newRAIDb1LeastPendingRequestsFirst(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb1_LPRF using the parsed attributes.
private  void newRAIDb1LoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb1 using the parsed attributes.
private  void newRAIDb1RoundRobinLoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb1_RR using the parsed attributes.
private  void newRAIDb1Scheduler(org.xml.sax.Attributes atts)
          Sets currentRequestScheduler as a new RAIDb1QueryLevelScheduler using the parsed attributes.
private  void newRAIDb1WeightedRoundRobinLoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb1_WRR using the parsed attributes.
private  void newRAIDb2ecLoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb2ec using the parsed attributes.
private  void newRAIDb2ecRoundRobinLoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb2ec_RR using the parsed attributes.
private  void newRAIDb2ecWeightedRoundRobinLoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb2ec_WRR using the parsed attributes.
private  void newRAIDb2LeastPendingRequestsFirst(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb2_LPRF using the parsed attributes.
private  void newRAIDb2LoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb2 using the parsed attributes.
private  void newRAIDb2RoundRobinLoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb2_RR using the parsed attributes.
private  void newRAIDb2Scheduler(org.xml.sax.Attributes atts)
          Sets currentRequestScheduler as a new RAIDb2QueryLevelScheduler using the parsed attributes.
private  void newRAIDb2WeightedRoundRobinLoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new RAIDb2_WRR using the parsed attributes.
private  void newRandomWaitPoolConnectionManager(org.xml.sax.Attributes atts)
          Adds a new RandomWaitPoolConnectionManager to currentBackend using the parsed attributes.
private  void newRealLogin(org.xml.sax.Attributes atts)
          Associates a new real database backend user to the virtual database user currentVirtualUser in the currentAuthenticationManager using the parsed attributes.
private  void newRequestManager(org.xml.sax.Attributes atts)
          Sets the beginTimeout, commitTimeout and rollbackTimeout timeouts (in ms) using the parsed attributes.
private  void newSimpleConnectionManager(org.xml.sax.Attributes atts)
          Adds a new SimpleConnectionManager to currentBackend using the parsed attributes.
private  void newSingleDBRequestLoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalancer as a new SingleDB using the parsed attributes.
private  void newSingleDBScheduler(org.xml.sax.Attributes atts)
          Sets currentRequestScheduler as a new SingleDBQueryLevelScheduler using the parsed attributes.
private  void newVariablePoolConnectionManager(org.xml.sax.Attributes atts)
          Adds a new VariablePoolConnectionManager to currentBackend using the parsed attributes.
private  void newVirtualDatabase(org.xml.sax.Attributes atts)
          Sets currentVirtualDatabase as a new VirtualDatabase using the parsed attributes.
private  void newVirtualLogin(org.xml.sax.Attributes atts)
          Sets currentVirtualUser as a new VirtualDatabaseUser using the parsed attributes and adds this new virtual database user to the currentAuthenticationManager.
private  void newWaitForCompletion(org.xml.sax.Attributes atts)
          Set the WaitForCompletion policy.
 void prepareDB(java.lang.String virtualName, boolean autoEnable, java.lang.String checkPoint)
          If this method is called.
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Allows to parse the document with a local copy of the DTD whatever the original DOCTYPE found.
 void startDocument()
          Initializes parsing of a document.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes atts)
          Analyzes an element first line.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

C_JDBC_DTD_FILE

private static final java.lang.String C_JDBC_DTD_FILE
C-JDBC DTD file name (must be found in classpath).

See Also:
Constant Field Values

DEFAULT_BEGIN_TIMEOUT

private static final long DEFAULT_BEGIN_TIMEOUT
Default begin timeout in milliseconds.

See Also:
Constant Field Values

DEFAULT_COMMIT_TIMEOUT

private static final long DEFAULT_COMMIT_TIMEOUT
Default commit timeout in milliseconds.

See Also:
Constant Field Values

DEFAULT_ROLLBACK_TIMEOUT

private static final long DEFAULT_ROLLBACK_TIMEOUT
Default rollback timeout in milliseconds.

See Also:
Constant Field Values

DEFAULT_REQUEST_TIMEOUT

private static final int DEFAULT_REQUEST_TIMEOUT
Default request timeout in milliseconds.

See Also:
Constant Field Values

DEFAULT_PORT

private static final int DEFAULT_PORT
Default port number on which clients will connect.

See Also:
Constant Field Values

DEFAULT_BACKLOG

private static final int DEFAULT_BACKLOG
Default backlog size for the server socket.

See Also:
Constant Field Values

DEFAULT_MAX_CONNECTIONS

private static final int DEFAULT_MAX_CONNECTIONS
Default maximum number of connections.

See Also:
Constant Field Values

DEFAULT_MIN_THREADS

private static final int DEFAULT_MIN_THREADS
Default minimum number of threads to process connections.

See Also:
Constant Field Values

DEFAULT_MAX_THREADS

private static final int DEFAULT_MAX_THREADS
Default maximum number of threads to process connections.

See Also:
Constant Field Values

logger

static Trace logger
Logger instance.


controller

private Controller controller
C-JDBC controller to setup.


dbToPrepare

private java.util.Hashtable dbToPrepare
dbToPrepare is used if only a specified database has to be loaded


skipDatabase

private boolean skipDatabase
setter for jumping from one VirtualDatabase definition to the next one


currentVirtualDatabase

private VirtualDatabase currentVirtualDatabase

currentBackend

private DatabaseBackend currentBackend

currentDatabaseBackendUser

private DatabaseBackendUser currentDatabaseBackendUser

currentAuthenticationManager

private AuthenticationManager currentAuthenticationManager

currentRequestScheduler

private AbstractScheduler currentRequestScheduler

currentRequestCache

private AbstractRequestCache currentRequestCache

currentLoadBalancer

private AbstractLoadBalancer currentLoadBalancer

currentRecoveryLog

private JDBCRecoveryLog currentRecoveryLog

currentVirtualUser

private VirtualDatabaseUser currentVirtualUser

currentDatabaseSchema

private DatabaseSchema currentDatabaseSchema

currentTable

private DatabaseTable currentTable

numberOfColumns

private int numberOfColumns

connectionManagerVLogin

private java.lang.String connectionManagerVLogin

currentWaitForCompletionPolicy

private WaitForCompletionPolicy currentWaitForCompletionPolicy

beginTimeout

private long beginTimeout

commitTimeout

private long commitTimeout

rollbackTimeout

private long rollbackTimeout

requestTimeout

private int requestTimeout

backgroundParsing

private boolean backgroundParsing

caseSensitiveParsing

private boolean caseSensitiveParsing

currentCreateTablePolicy

private CreateTablePolicy currentCreateTablePolicy

currentCreateTableRule

private CreateTableRule currentCreateTableRule

backendNameList

private java.util.ArrayList backendNameList

currentErrorCheckingPolicy

private ErrorCheckingPolicy currentErrorCheckingPolicy

currentNbOfConcurrentReads

private int currentNbOfConcurrentReads
Constructor Detail

DatabasesHandler

public DatabasesHandler(Controller controller)
Creates a new DatabasesHandler
Parameters:
controller - a Controller object representing the C-JDBC controller to setup
Method Detail

fatalError

public void fatalError(org.xml.sax.SAXParseException e)
                throws org.xml.sax.SAXException
Handles notification of a non-recoverable parser error.

Parameters:
e - the warning information encoded as an exception.
Throws:
org.xml.sax.SAXException - any SAX exception, possibly wrapping another exception.

error

public void error(org.xml.sax.SAXParseException e)
           throws org.xml.sax.SAXException
Handles notification of a recoverable parser error.

Parameters:
e - the warning information encoded as an exception.
Throws:
org.xml.sax.SAXException - any SAX exception, possibly wrapping another exception

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws org.xml.sax.SAXException
Allows to parse the document with a local copy of the DTD whatever the original DOCTYPE found. Warning, this method is called only if the XML document contains a DOCTYPE.

Throws:
org.xml.sax.SAXException
See Also:
EntityResolver.resolveEntity(java.lang.String, java.lang.String)

prepareDB

public void prepareDB(java.lang.String virtualName,
                      boolean autoEnable,
                      java.lang.String checkPoint)
If this method is called. Only the specified DB of the Xml file will be loaded.

Parameters:
virtualName - VirtualDatabase name
autoEnable - autoenable switch
checkPoint - checkpoint for recovery

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Initializes parsing of a document.

Throws:
org.xml.sax.SAXException - unspecialized error

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Finalizes parsing of a document.

Throws:
org.xml.sax.SAXException - unspecialized error

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String name,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Analyzes an element first line.

Parameters:
uri - name space URI
localName - local name
name - element raw name
atts - element attributes
Throws:
org.xml.sax.SAXException - if an error occurs

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String name)
                throws org.xml.sax.SAXException
DatabasesHandler for end of element.

Parameters:
uri - name space URI
localName - local name
name - element raw name
Throws:
org.xml.sax.SAXException - if an error occurs

newVirtualDatabase

private void newVirtualDatabase(org.xml.sax.Attributes atts)
                         throws org.xml.sax.SAXException
Sets currentVirtualDatabase as a new VirtualDatabase using the parsed attributes. An exception is thrown in particular if a virtual database with the same name is already registered in the controller.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newDistribution

private void newDistribution(org.xml.sax.Attributes atts)
                      throws org.xml.sax.SAXException
Sets currentBackend as a new DatabaseBackend using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException

newDatabaseBackend

private void newDatabaseBackend(org.xml.sax.Attributes atts)
Sets currentBackend as a new DatabaseBackend using the parsed attributes.

Parameters:
atts - parsed attributes

newAuthenticationManager

private void newAuthenticationManager(org.xml.sax.Attributes atts)
Sets currentAuthenticationManager as a new AuthenticationManager.

Parameters:
atts - not used attributes

newAdminLogin

private void newAdminLogin(org.xml.sax.Attributes atts)
Sets the administrator user of the currentAuthenticationManager using the parsed attributs.

Parameters:
atts - parsed attributes

newVirtualLogin

private void newVirtualLogin(org.xml.sax.Attributes atts)
Sets currentVirtualUser as a new VirtualDatabaseUser using the parsed attributes and adds this new virtual database user to the currentAuthenticationManager.

Parameters:
atts - parsed attributes

newRealLogin

private void newRealLogin(org.xml.sax.Attributes atts)
                   throws org.xml.sax.SAXException
Associates a new real database backend user to the virtual database user currentVirtualUser in the currentAuthenticationManager using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRequestManager

private void newRequestManager(org.xml.sax.Attributes atts)
                        throws org.xml.sax.SAXException
Sets the beginTimeout, commitTimeout and rollbackTimeout timeouts (in ms) using the parsed attributes.

Parameters:
atts - element attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newSingleDBScheduler

private void newSingleDBScheduler(org.xml.sax.Attributes atts)
                           throws org.xml.sax.SAXException
Sets currentRequestScheduler as a new SingleDBQueryLevelScheduler using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb0Scheduler

private void newRAIDb0Scheduler(org.xml.sax.Attributes atts)
                         throws org.xml.sax.SAXException
Sets currentRequestScheduler as a new RAIDb0QueryLevelScheduler using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb1Scheduler

private void newRAIDb1Scheduler(org.xml.sax.Attributes atts)
                         throws org.xml.sax.SAXException
Sets currentRequestScheduler as a new RAIDb1QueryLevelScheduler using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb2Scheduler

private void newRAIDb2Scheduler(org.xml.sax.Attributes atts)
                         throws org.xml.sax.SAXException
Sets currentRequestScheduler as a new RAIDb2QueryLevelScheduler using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newQueryCache

private void newQueryCache(org.xml.sax.Attributes atts)
                    throws org.xml.sax.SAXException
Sets currentRequestCache as a new QueryCache using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newQueryCacheDB

private void newQueryCacheDB(org.xml.sax.Attributes atts)
                      throws org.xml.sax.SAXException
Sets currentRequestCache as a new QueryCacheDB and currentBackend as a new DatabaseBackend using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newSingleDBRequestLoadBalancer

private void newSingleDBRequestLoadBalancer(org.xml.sax.Attributes atts)
                                     throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new SingleDB using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb0LoadBalancer

private void newRAIDb0LoadBalancer(org.xml.sax.Attributes atts)
                            throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb0 using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb1LoadBalancer

private void newRAIDb1LoadBalancer(org.xml.sax.Attributes atts)
                            throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb1 using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb1RoundRobinLoadBalancer

private void newRAIDb1RoundRobinLoadBalancer(org.xml.sax.Attributes atts)
                                      throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb1_RR using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb1WeightedRoundRobinLoadBalancer

private void newRAIDb1WeightedRoundRobinLoadBalancer(org.xml.sax.Attributes atts)
                                              throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb1_WRR using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb1LeastPendingRequestsFirst

private void newRAIDb1LeastPendingRequestsFirst(org.xml.sax.Attributes atts)
                                         throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb1_LPRF using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb1ecLoadBalancer

private void newRAIDb1ecLoadBalancer(org.xml.sax.Attributes atts)
                              throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb1ec using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb1ecRoundRobinLoadBalancer

private void newRAIDb1ecRoundRobinLoadBalancer(org.xml.sax.Attributes atts)
                                        throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb1ec_RR using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb1ecWeightedRoundRobinLoadBalancer

private void newRAIDb1ecWeightedRoundRobinLoadBalancer(org.xml.sax.Attributes atts)
                                                throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb1ec_WRR using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb2LoadBalancer

private void newRAIDb2LoadBalancer(org.xml.sax.Attributes atts)
Sets currentLoadBalancer as a new RAIDb2 using the parsed attributes.

Parameters:
atts - parsed attributes

newRAIDb2RoundRobinLoadBalancer

private void newRAIDb2RoundRobinLoadBalancer(org.xml.sax.Attributes atts)
                                      throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb2_RR using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb2WeightedRoundRobinLoadBalancer

private void newRAIDb2WeightedRoundRobinLoadBalancer(org.xml.sax.Attributes atts)
                                              throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb2_WRR using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb2LeastPendingRequestsFirst

private void newRAIDb2LeastPendingRequestsFirst(org.xml.sax.Attributes atts)
                                         throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb2_LPRF using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb2ecLoadBalancer

private void newRAIDb2ecLoadBalancer(org.xml.sax.Attributes atts)
Sets currentLoadBalancer as a new RAIDb2ec using the parsed attributes.

Parameters:
atts - parsed attributes

newRAIDb2ecRoundRobinLoadBalancer

private void newRAIDb2ecRoundRobinLoadBalancer(org.xml.sax.Attributes atts)
                                        throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb2ec_RR using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb2ecWeightedRoundRobinLoadBalancer

private void newRAIDb2ecWeightedRoundRobinLoadBalancer(org.xml.sax.Attributes atts)
                                                throws org.xml.sax.SAXException
Sets currentLoadBalancer as a new RAIDb2ec_WRR using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newWaitForCompletion

private void newWaitForCompletion(org.xml.sax.Attributes atts)
                           throws org.xml.sax.SAXException
Set the WaitForCompletion policy.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newErrorChecking

private void newErrorChecking(org.xml.sax.Attributes atts)
                       throws org.xml.sax.SAXException
Add an ErrorChecking policy.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newCreateTable

private void newCreateTable(org.xml.sax.Attributes atts)
                     throws org.xml.sax.SAXException
Add a CreateTable rule.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newBackendName

private void newBackendName(org.xml.sax.Attributes atts)
                     throws org.xml.sax.SAXException
Adds a backend name to the current backendNameList.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newBackendWeight

private void newBackendWeight(org.xml.sax.Attributes atts)
                       throws org.xml.sax.SAXException
Sets the weight of the currentLoadBalancer using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newJDBCRecoveryLog

private void newJDBCRecoveryLog(org.xml.sax.Attributes atts)
                         throws org.xml.sax.SAXException
Sets the currentRecoveryLog as new JDBCRecoveryLog using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newJDBCRecoveryLogTable

private void newJDBCRecoveryLogTable(org.xml.sax.Attributes atts)
                              throws org.xml.sax.SAXException
Sets the recovery log table create statement for the current JDBCRecoveryLog using the RecoveryLogTable parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newJDBCRecoveryCheckpointTable

private void newJDBCRecoveryCheckpointTable(org.xml.sax.Attributes atts)
                                     throws org.xml.sax.SAXException
Sets the recovery log table create statement for the current JDBCRecoveryLog using the RecoveryLogTable parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newFileRecoveryLog

private void newFileRecoveryLog(org.xml.sax.Attributes atts)
                         throws org.xml.sax.SAXException
Sets the currentRecoveryLog as new FileRecoveryLog using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newConnectionManager

private void newConnectionManager(org.xml.sax.Attributes atts)
                           throws org.xml.sax.SAXException
Sets the currentRecoveryLog as new JDBCRecoveryLog using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newSimpleConnectionManager

private void newSimpleConnectionManager(org.xml.sax.Attributes atts)
Adds a new SimpleConnectionManager to currentBackend using the parsed attributes.

Parameters:
atts - parsed attributes

newFailFastPoolConnectionManager

private void newFailFastPoolConnectionManager(org.xml.sax.Attributes atts)
                                       throws org.xml.sax.SAXException
Adds a new FailFastPoolConnectionManager to currentBackend using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newRandomWaitPoolConnectionManager

private void newRandomWaitPoolConnectionManager(org.xml.sax.Attributes atts)
                                         throws org.xml.sax.SAXException
Adds a new RandomWaitPoolConnectionManager to currentBackend using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newVariablePoolConnectionManager

private void newVariablePoolConnectionManager(org.xml.sax.Attributes atts)
                                       throws org.xml.sax.SAXException
Adds a new VariablePoolConnectionManager to currentBackend using the parsed attributes.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if an error occurs

newDatabaseTable

private void newDatabaseTable(org.xml.sax.Attributes atts)
                       throws org.xml.sax.SAXException
Sets currentTable as a new DatabaseTable using the parsed attributs.

Parameters:
atts - parsed attributes
Throws:
org.xml.sax.SAXException - if error occurs

newDatabaseColumn

private void newDatabaseColumn(org.xml.sax.Attributes atts)
Adds to currentTable a new DatabaseColumn using the parsed attributes.

Parameters:
atts - parsed attributes


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