org.objectweb.cjdbc.controller.xml
Class DatabasesParser

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

public class DatabasesParser
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 , Nicolas Modrzyk

Field Summary
private  java.util.ArrayList backendNameList
           
private  long beginTimeout
           
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  BackupManager currentBackupManager
           
private  CreateTablePolicy currentCreateTablePolicy
           
private  CreateTableRule currentCreateTableRule
           
private  DatabaseBackendUser currentDatabaseBackendUser
           
private  DatabaseSchema currentDatabaseSchema
           
private  ErrorCheckingPolicy currentErrorCheckingPolicy
           
private  AbstractLoadBalancer currentLoadBalancer
           
private  MacrosHandler currentMacroHandler
           
private  MetadataCache currentMetadataCache
           
private  int currentNbOfConcurrentReads
           
private  ParsingCache currentParsingCache
           
private  DatabaseProcedure currentProcedure
           
private  RecoveryLog currentRecoveryLog
           
private  AbstractScheduler currentRequestScheduler
           
private  AbstractResultCache currentResultCache
           
private  ResultCacheRule currentResultCacheRule
           
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
(package private) static Trace logger
          Logger instance.
private  int numberOfColumns
           
private  org.xml.sax.XMLReader parser
          XML parser.
private  boolean parsingAdminUsers
          Parsing of Users are only defined in Admin at the moment, but may be defined somewhere else in the future.
private  int requestTimeout
           
private  long rollbackTimeout
           
private  boolean skipDatabase
          setter for jumping from one VirtualDatabase definition to the next one
 
Constructor Summary
DatabasesParser(Controller controller)
          Creates a new DatabasesParser instance.
DatabasesParser(Controller controller, java.lang.String virtualName, int autoLoad, java.lang.String checkPoint)
          Creates a new DatabasesParser instance.
 
Method Summary
 void endDocument()
          Finalizes parsing of a document.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String name)
          DatabasesParser 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 newAdminUser(org.xml.sax.Attributes atts)
          Sets the administrator user of the currentAuthenticationManager using the parsed attributs.
private  void newAuthenticationManager()
          Sets currentAuthenticationManageras 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 currentLoadBalancerusing the parsed attributes.
private  void newBackuper(org.xml.sax.Attributes atts)
          Adds a new Backuper to the currentBackupManager
private  void newBackupManager()
          Adds a new BackupManager
private  void newConnectionManager(org.xml.sax.Attributes atts)
          Sets the currentRecoveryLog as new RecoveryLog 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 currentBackendas a new DatabaseBackend using the parsed attributes.
private  void newDatabaseColumn(org.xml.sax.Attributes atts)
          Adds to currentTablea new DatabaseColumn using the parsed attributes.
private  void newDatabaseProcedure(org.xml.sax.Attributes atts)
           
private  void newDatabaseProcedureColumn(org.xml.sax.Attributes atts)
           
private  void newDatabaseSchema(org.xml.sax.Attributes atts)
           
private  void newDatabaseTable(org.xml.sax.Attributes atts)
          Sets currentTableas a new DatabaseTable using the parsed attributs.
private  void newDefaultResultCacheRule(org.xml.sax.Attributes atts)
          Set the DefaultResultCacheRule using the parsed attributes.
private  void newDistribution(org.xml.sax.Attributes atts)
          Sets currentVirtualDatabaseas a new DistributedVirtalDatabase using the parsed attributes.
private  void newEagerCaching(org.xml.sax.Attributes atts)
          Add a new EagerCaching behavior to the current ResultCacheRule.
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 currentBackendusing the parsed attributes.
private  void newMacroHandler(org.xml.sax.Attributes atts)
          Adds a new MacrosHandler using the parsed attributes.
private  void newMetadataCache(org.xml.sax.Attributes atts)
          Sets currentMetadataCacheas a new MetadataCache using the parsed attributes.
private  void newParallelDBLeastPendingRequestsFirst()
          Sets currentLoadBalanceras a new ParallelDB_RR using the parsed attributes.
private  void newParallelDBRoundRobinLoadBalancer()
          Sets currentLoadBalanceras a new ParallelDB_LPRF using the parsed attributes.
private  void newParsingCache(org.xml.sax.Attributes atts)
          Sets currentParsingCacheas a new ParsingCache using the parsed attributes.
private  void newRAIDb0LoadBalancer()
          Sets currentLoadBalanceras a new RAIDb0 using the parsed attributes.
private  void newRAIDb0Scheduler(org.xml.sax.Attributes atts)
          Sets currentRequestScheduleras a new RAIDb0PassThroughLevelScheduler or RAIDb0PessimisticTransactionLevelScheduler using the parsed attributes.
private  void newRAIDb1ecLoadBalancer(org.xml.sax.Attributes atts)
          Sets currentLoadBalanceras a new RAIDb1ec using the parsed attributes.
private  void newRAIDb1ecRoundRobinLoadBalancer()
          Sets currentLoadBalanceras a new RAIDb1ec_RR using the parsed attributes.
private  void newRAIDb1ecWeightedRoundRobinLoadBalancer()
          Sets currentLoadBalanceras a new RAIDb1ec_WRR using the parsed attributes.
private  void newRAIDb1LeastPendingRequestsFirst()
          Sets currentLoadBalanceras a new RAIDb1_LPRF using the parsed attributes.
private  void newRAIDb1LoadBalancer()
          Sets currentLoadBalanceras a new RAIDb1 using the parsed attributes.
private  void newRAIDb1RoundRobinLoadBalancer()
          Sets currentLoadBalanceras a new RAIDb1_RR using the parsed attributes.
private  void newRAIDb1Scheduler(org.xml.sax.Attributes atts)
          Sets currentRequestScheduleras a new RAIDb1PassThroughScheduler, RAIDb1QueryLevelScheduler, RAIDb1OptimisticQueryLevelScheduler or RAIDb1PessimisticTransactionLevelScheduler using the parsed attributes.
private  void newRAIDb1WeightedRoundRobinLoadBalancer()
          Sets currentLoadBalanceras a new RAIDb1_WRR using the parsed attributes.
private  void newRAIDb2ecLoadBalancer()
          Sets currentLoadBalanceras a new RAIDb2ec using the parsed attributes.
private  void newRAIDb2ecRoundRobinLoadBalancer()
          Sets currentLoadBalanceras a new RAIDb2ec_RR using the parsed attributes.
private  void newRAIDb2ecWeightedRoundRobinLoadBalancer()
          Sets currentLoadBalanceras a new RAIDb2ec_WRR using the parsed attributes.
private  void newRAIDb2LeastPendingRequestsFirst()
          Sets currentLoadBalanceras a new RAIDb2_LPRF using the parsed attributes.
private  void newRAIDb2LoadBalancer()
          Sets currentLoadBalanceras a new RAIDb2 using the parsed attributes.
private  void newRAIDb2RoundRobinLoadBalancer()
          Sets currentLoadBalanceras a new RAIDb2_RR using the parsed attributes.
private  void newRAIDb2Scheduler(org.xml.sax.Attributes atts)
          Sets currentRequestScheduleras a new RAIDb2PassThroughScheduler, RAIDb2QueryLevelScheduler or RAIDb2PessimisticTransactionLevelScheduler using the parsed attributes.
private  void newRAIDb2WeightedRoundRobinLoadBalancer()
          Sets currentLoadBalanceras a new RAIDb2_WRR using the parsed attributes.
private  void newRandomWaitPoolConnectionManager(org.xml.sax.Attributes atts)
          Adds a new RandomWaitPoolConnectionManager to currentBackendusing the parsed attributes.
private  void newRecoveryBackendTable(org.xml.sax.Attributes atts)
          Sets the backend table create statement for the current RecoveryLog using the BackendTable parsed attributes.
private  void newRecoveryCheckpointTable(org.xml.sax.Attributes atts)
          Sets the checkpoint table create statement for the current RecoveryLog using the CheckpointTable parsed attributes.
private  void newRecoveryDumpTable(org.xml.sax.Attributes atts)
          Sets the dump table create statement for the current RecoveryLog using the DumpTable parsed attributes.
private  void newRecoveryLog(org.xml.sax.Attributes atts)
          Sets the currentRecoveryLog as new RecoveryLog using the parsed attributes.
private  void newRecoveryLogTable(org.xml.sax.Attributes atts)
          Sets the recovery log table create statement for the current RecoveryLog using the RecoveryLogTable parsed attributes.
private  void newRelaxedCaching(org.xml.sax.Attributes atts)
          Add a new RelaxedCaching behavior to the current ResultCacheRule.
private  void newRequestManager(org.xml.sax.Attributes atts)
          Sets the beginTimeout,commitTimeoutand rollbackTimeouttimeouts (in ms) using the parsed attributes.
private  void newResultCache(org.xml.sax.Attributes atts)
          Sets currentResultCacheas a new ResultCache using the parsed attributes.
private  void newResultCacheRule(org.xml.sax.Attributes atts)
          Add a new ResultCacheRule using the parsed attributes.
private  void newRewritingRule(org.xml.sax.Attributes atts)
          Adds a AbstractRewritingRule to the current DatabaseBackend.
private  void newSimpleConnectionManager()
          Adds a new SimpleConnectionManager to currentBackendusing the parsed attributes.
private  void newSingleDBRequestLoadBalancer()
          Sets currentLoadBalanceras a new SingleDB using the parsed attributes.
private  void newSingleDBScheduler(org.xml.sax.Attributes atts)
          Sets currentRequestScheduleras a new SingleDBPassThroughScheduler using the parsed attributes.
private  void newSQLMonitoring(org.xml.sax.Attributes atts)
          Sets a new SQLMonitoring to the current virtual database.
private  void newSQLMonitoringRule(org.xml.sax.Attributes atts)
          Add a new SQLMonitoringRule to the current SQL monitor.
private  void newVariablePoolConnectionManager(org.xml.sax.Attributes atts)
          Adds a new VariablePoolConnectionManager to currentBackendusing the parsed attributes.
private  void newVirtualDatabase(org.xml.sax.Attributes atts)
          Sets currentVirtualDatabaseas a new VirtualDatabase using the parsed attributes.
private  void newVirtualLogin(org.xml.sax.Attributes atts)
          Sets currentVirtualUseras 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, int autoLoad, java.lang.String checkPoint)
          If this method is called.
private  void prepareHandler(Controller controller)
           
 void readXML(java.lang.String xml)
          Parses an XML content according to C-JDBC DTD.
 void readXML(java.lang.String xml, boolean validateBeforeParsing)
          Validate an XML content according to C-JDBC DTD.
 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

parser

private org.xml.sax.XMLReader parser
XML parser.


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


parsingAdminUsers

private boolean parsingAdminUsers
Parsing of Users are only defined in Admin at the moment, but may be defined somewhere else in the future.


currentVirtualDatabase

private VirtualDatabase currentVirtualDatabase

currentBackupManager

private BackupManager currentBackupManager

currentBackend

private DatabaseBackend currentBackend

currentDatabaseBackendUser

private DatabaseBackendUser currentDatabaseBackendUser

currentAuthenticationManager

private AuthenticationManager currentAuthenticationManager

currentRequestScheduler

private AbstractScheduler currentRequestScheduler

currentResultCache

private AbstractResultCache currentResultCache

currentMetadataCache

private MetadataCache currentMetadataCache

currentParsingCache

private ParsingCache currentParsingCache

currentResultCacheRule

private ResultCacheRule currentResultCacheRule

currentMacroHandler

private MacrosHandler currentMacroHandler

currentLoadBalancer

private AbstractLoadBalancer currentLoadBalancer

currentRecoveryLog

private RecoveryLog currentRecoveryLog

currentVirtualUser

private VirtualDatabaseUser currentVirtualUser

currentDatabaseSchema

private DatabaseSchema currentDatabaseSchema

currentTable

private DatabaseTable currentTable

currentProcedure

private DatabaseProcedure currentProcedure

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

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

DatabasesParser

public DatabasesParser(Controller controller)
                throws org.xml.sax.SAXException
Creates a new DatabasesParser instance. This method Instanciates also a new DatabasesParser.

Parameters:
controller - Controller to load the Virtual Database into
Throws:
org.xml.sax.SAXException - if an error occurs

DatabasesParser

public DatabasesParser(Controller controller,
                       java.lang.String virtualName,
                       int autoLoad,
                       java.lang.String checkPoint)
                throws org.xml.sax.SAXException
Creates a new DatabasesParser instance. This method Instanciates also a new DatabasesParser. This instance will look only for the specified database.

Parameters:
controller - Controller to load the Virtual Database into
virtualName - the specified VirtualDatabase to load.
autoLoad - autoenable switch
checkPoint - checkpoint information
Throws:
org.xml.sax.SAXException - if an error occurs
Method Detail

prepareHandler

private void prepareHandler(Controller controller)
                     throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

readXML

public void readXML(java.lang.String xml)
             throws java.io.IOException,
                    org.xml.sax.SAXException
Parses an XML content according to C-JDBC DTD.

Parameters:
xml - a String containing the XML content to parse
Throws:
org.xml.sax.SAXException - if an error occurs
java.io.IOException - if an error occurs

readXML

public void readXML(java.lang.String xml,
                    boolean validateBeforeParsing)
             throws java.io.IOException,
                    org.xml.sax.SAXException
Validate an XML content according to C-JDBC DTD.

Parameters:
xml - content
validateBeforeParsing - if true validate the document before the parsing
Throws:
java.io.IOException - if an error occurs
org.xml.sax.SAXException - if an error occurs

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,
                      int autoLoad,
                      java.lang.String checkPoint)
If this method is called. Only the specified DB of the Xml file will be loaded.

Parameters:
virtualName - VirtualDatabase name
autoLoad - 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
DatabasesParser 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 currentVirtualDatabaseas 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 currentVirtualDatabaseas a new DistributedVirtalDatabase using the parsed attributes.

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

newSQLMonitoring

private void newSQLMonitoring(org.xml.sax.Attributes atts)
Sets a new SQLMonitoring to the current virtual database.

Parameters:
atts - parsed attributes

newSQLMonitoringRule

private void newSQLMonitoringRule(org.xml.sax.Attributes atts)
Add a new SQLMonitoringRule to the current SQL monitor.

Parameters:
atts - parsed attributes

newBackupManager

private void newBackupManager()
Adds a new BackupManager


newBackuper

private void newBackuper(org.xml.sax.Attributes atts)
Adds a new Backuper to the currentBackupManager

Parameters:
atts - parsed attributes

newDatabaseBackend

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

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

newRewritingRule

private void newRewritingRule(org.xml.sax.Attributes atts)
                       throws org.xml.sax.SAXException
Adds a AbstractRewritingRule to the current DatabaseBackend.

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

newAuthenticationManager

private void newAuthenticationManager()
Sets currentAuthenticationManageras a new AuthenticationManager.


newAdminUser

private void newAdminUser(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 currentVirtualUseras a new VirtualDatabaseUser using the parsed attributes and adds this new virtual database user to the currentAuthenticationManager.

Parameters:
atts - parsed attributes

newRequestManager

private void newRequestManager(org.xml.sax.Attributes atts)
                        throws org.xml.sax.SAXException
Sets the beginTimeout,commitTimeoutand rollbackTimeouttimeouts (in ms) using the parsed attributes.

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

newMacroHandler

private void newMacroHandler(org.xml.sax.Attributes atts)
Adds a new MacrosHandler using the parsed attributes.

Parameters:
atts - parsed attributes

newSingleDBScheduler

private void newSingleDBScheduler(org.xml.sax.Attributes atts)
                           throws org.xml.sax.SAXException
Sets currentRequestScheduleras a new SingleDBPassThroughScheduler 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 currentRequestScheduleras a new RAIDb0PassThroughLevelScheduler or RAIDb0PessimisticTransactionLevelScheduler 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 currentRequestScheduleras a new RAIDb1PassThroughScheduler, RAIDb1QueryLevelScheduler, RAIDb1OptimisticQueryLevelScheduler or RAIDb1PessimisticTransactionLevelScheduler 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 currentRequestScheduleras a new RAIDb2PassThroughScheduler, RAIDb2QueryLevelScheduler or RAIDb2PessimisticTransactionLevelScheduler using the parsed attributes.

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

newMetadataCache

private void newMetadataCache(org.xml.sax.Attributes atts)
                       throws org.xml.sax.SAXException
Sets currentMetadataCacheas a new MetadataCache using the parsed attributes.

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

newParsingCache

private void newParsingCache(org.xml.sax.Attributes atts)
                      throws org.xml.sax.SAXException
Sets currentParsingCacheas a new ParsingCache using the parsed attributes.

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

newResultCache

private void newResultCache(org.xml.sax.Attributes atts)
                     throws org.xml.sax.SAXException
Sets currentResultCacheas a new ResultCache using the parsed attributes.

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

newResultCacheRule

private void newResultCacheRule(org.xml.sax.Attributes atts)
                         throws org.xml.sax.SAXException
Add a new ResultCacheRule using the parsed attributes.

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

newDefaultResultCacheRule

private void newDefaultResultCacheRule(org.xml.sax.Attributes atts)
                                throws org.xml.sax.SAXException
Set the DefaultResultCacheRule using the parsed attributes.

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

newEagerCaching

private void newEagerCaching(org.xml.sax.Attributes atts)
Add a new EagerCaching behavior to the current ResultCacheRule.

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

newRelaxedCaching

private void newRelaxedCaching(org.xml.sax.Attributes atts)
Add a new RelaxedCaching behavior to the current ResultCacheRule.

Parameters:
atts - parsed attributes

newSingleDBRequestLoadBalancer

private void newSingleDBRequestLoadBalancer()
                                     throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new SingleDB using the parsed attributes.

Throws:
org.xml.sax.SAXException - if an error occurs

newParallelDBLeastPendingRequestsFirst

private void newParallelDBLeastPendingRequestsFirst()
                                             throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new ParallelDB_RR using the parsed attributes.

Throws:
org.xml.sax.SAXException - if an error occurs

newParallelDBRoundRobinLoadBalancer

private void newParallelDBRoundRobinLoadBalancer()
                                          throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new ParallelDB_LPRF using the parsed attributes.

Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb0LoadBalancer

private void newRAIDb0LoadBalancer()
Sets currentLoadBalanceras a new RAIDb0 using the parsed attributes.


newRAIDb1LoadBalancer

private void newRAIDb1LoadBalancer()
Sets currentLoadBalanceras a new RAIDb1 using the parsed attributes.


newRAIDb1RoundRobinLoadBalancer

private void newRAIDb1RoundRobinLoadBalancer()
                                      throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new RAIDb1_RR using the parsed attributes.

Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb1WeightedRoundRobinLoadBalancer

private void newRAIDb1WeightedRoundRobinLoadBalancer()
                                              throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new RAIDb1_WRR using the parsed attributes.

Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb1LeastPendingRequestsFirst

private void newRAIDb1LeastPendingRequestsFirst()
                                         throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new RAIDb1_LPRF using the parsed attributes.

Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb1ecLoadBalancer

private void newRAIDb1ecLoadBalancer(org.xml.sax.Attributes atts)
Sets currentLoadBalanceras a new RAIDb1ec using the parsed attributes.

Parameters:
atts - parsed attributes

newRAIDb1ecRoundRobinLoadBalancer

private void newRAIDb1ecRoundRobinLoadBalancer()
                                        throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new RAIDb1ec_RR using the parsed attributes.

Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb1ecWeightedRoundRobinLoadBalancer

private void newRAIDb1ecWeightedRoundRobinLoadBalancer()
                                                throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new RAIDb1ec_WRR using the parsed attributes.

Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb2LoadBalancer

private void newRAIDb2LoadBalancer()
Sets currentLoadBalanceras a new RAIDb2 using the parsed attributes.


newRAIDb2RoundRobinLoadBalancer

private void newRAIDb2RoundRobinLoadBalancer()
                                      throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new RAIDb2_RR using the parsed attributes.

Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb2WeightedRoundRobinLoadBalancer

private void newRAIDb2WeightedRoundRobinLoadBalancer()
                                              throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new RAIDb2_WRR using the parsed attributes.

Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb2LeastPendingRequestsFirst

private void newRAIDb2LeastPendingRequestsFirst()
                                         throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new RAIDb2_LPRF using the parsed attributes.

Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb2ecLoadBalancer

private void newRAIDb2ecLoadBalancer()
Sets currentLoadBalanceras a new RAIDb2ec using the parsed attributes.


newRAIDb2ecRoundRobinLoadBalancer

private void newRAIDb2ecRoundRobinLoadBalancer()
                                        throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new RAIDb2ec_RR using the parsed attributes.

Throws:
org.xml.sax.SAXException - if an error occurs

newRAIDb2ecWeightedRoundRobinLoadBalancer

private void newRAIDb2ecWeightedRoundRobinLoadBalancer()
                                                throws org.xml.sax.SAXException
Sets currentLoadBalanceras a new RAIDb2ec_WRR using the 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)
Adds a backend name to the current backendNameList.

Parameters:
atts - parsed attributes

newBackendWeight

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

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

newRecoveryLog

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

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

newRecoveryLogTable

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

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

newRecoveryCheckpointTable

private void newRecoveryCheckpointTable(org.xml.sax.Attributes atts)
                                 throws org.xml.sax.SAXException
Sets the checkpoint table create statement for the current RecoveryLog using the CheckpointTable parsed attributes.

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

newRecoveryBackendTable

private void newRecoveryBackendTable(org.xml.sax.Attributes atts)
                              throws org.xml.sax.SAXException
Sets the backend table create statement for the current RecoveryLog using the BackendTable parsed attributes.

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

newRecoveryDumpTable

private void newRecoveryDumpTable(org.xml.sax.Attributes atts)
                           throws org.xml.sax.SAXException
Sets the dump table create statement for the current RecoveryLog using the DumpTable 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 RecoveryLog using the parsed attributes.

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

newSimpleConnectionManager

private void newSimpleConnectionManager()
Adds a new SimpleConnectionManager to currentBackendusing the parsed attributes.


newFailFastPoolConnectionManager

private void newFailFastPoolConnectionManager(org.xml.sax.Attributes atts)
                                       throws org.xml.sax.SAXException
Adds a new FailFastPoolConnectionManager to currentBackendusing 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 currentBackendusing 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 currentBackendusing 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 currentTableas a new DatabaseTable using the parsed attributs.

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

newDatabaseSchema

private void newDatabaseSchema(org.xml.sax.Attributes atts)

newDatabaseColumn

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

Parameters:
atts - parsed attributes

newDatabaseProcedure

private void newDatabaseProcedure(org.xml.sax.Attributes atts)

newDatabaseProcedureColumn

private void newDatabaseProcedureColumn(org.xml.sax.Attributes atts)


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