org.objectweb.cjdbc.controller.requestmanager
Class DistributedRequestManager

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.requestmanager.RequestManager
      extended byorg.objectweb.cjdbc.controller.requestmanager.DistributedRequestManager

public class DistributedRequestManager
extends RequestManager

This class defines a Distributed Request Manager.

The RM is composed of a Request Scheduler, an optional Query Cache, and a Load Balancer and an optional Recovery Log. Unlike a non-dsitributed Request Manager, this implementation is responsible for synchronizing the different controllers components (schedulers, ...).

Version:
1.0
Author:
Emmanuel Cecchet

Field Summary
 
Fields inherited from class org.objectweb.cjdbc.controller.requestmanager.RequestManager
loadBalancer, recoveryLog, requestCache, scheduler
 
Constructor Summary
DistributedRequestManager(DistributedVirtualDatabase vdb, AbstractScheduler scheduler, AbstractLoadBalancer loadBalancer, AbstractRecoveryLog recoveryLog, long beginTimeout, long commitTimeout, long rollbackTimeout)
          Creates a new DistributedRequestManager instance without cache.
DistributedRequestManager(DistributedVirtualDatabase vdb, AbstractScheduler scheduler, AbstractLoadBalancer loadBalancer, long beginTimeout, long commitTimeout, long rollbackTimeout)
          Creates a new DistributedRequestManager instance without cache.
DistributedRequestManager(DistributedVirtualDatabase vdb, AbstractScheduler scheduler, AbstractRequestCache cache, AbstractLoadBalancer loadBalancer, AbstractRecoveryLog recoveryLog, long beginTimeout, long commitTimeout, long rollbackTimeout)
          Creates a new DistributedRequestManager instance without cache.
DistributedRequestManager(DistributedVirtualDatabase vdb, AbstractScheduler scheduler, AbstractRequestCache cache, AbstractLoadBalancer loadBalancer, long beginTimeout, long commitTimeout, long rollbackTimeout)
          Creates a new DistributedRequestManager instance without cache.
 
Methods inherited from class org.objectweb.cjdbc.controller.requestmanager.RequestManager
begin, commit, disableBackend, disableBackendForCheckpoint, enableBackend, enableBackendFromCheckpoint, execReadRequest, execReadStoredProcedure, execWriteRequest, execWriteRequestWithKeys, execWriteStoredProcedure, getDatabaseSchema, getInformation, getLoadBalancer, getRecoveryLog, getRequestCache, getRequiredParsingGranularity, getScheduler, getXmlInformation, mergeDatabaseSchema, rollback, setBackgroundParsing, setCaseSensitiveParsing, setDatabaseSchema, setLoadBalancer, setRecoveryLog, setRequestCache, setScheduler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedRequestManager

public DistributedRequestManager(DistributedVirtualDatabase vdb,
                                 AbstractScheduler scheduler,
                                 AbstractLoadBalancer loadBalancer,
                                 long beginTimeout,
                                 long commitTimeout,
                                 long rollbackTimeout)
                          throws java.sql.SQLException
Creates a new DistributedRequestManager instance without cache.

Parameters:
vdb - the virtual database this request manager belongs to
scheduler - the Request Scheduler to use
loadBalancer - the Request Load Balancer to use
beginTimeout - timeout in seconds for begin
commitTimeout - timeout in seconds for commit
rollbackTimeout - timeout in seconds for rollback
Throws:
java.sql.SQLException - if an error occurs

DistributedRequestManager

public DistributedRequestManager(DistributedVirtualDatabase vdb,
                                 AbstractScheduler scheduler,
                                 AbstractRequestCache cache,
                                 AbstractLoadBalancer loadBalancer,
                                 long beginTimeout,
                                 long commitTimeout,
                                 long rollbackTimeout)
                          throws java.sql.SQLException
Creates a new DistributedRequestManager instance without cache.

Parameters:
vdb - the virtual database this request manager belongs to
scheduler - the Request Scheduler to use
cache - a Query Cache implementation
loadBalancer - the Request Load Balancer to use
beginTimeout - timeout in seconds for begin
commitTimeout - timeout in seconds for commit
rollbackTimeout - timeout in seconds for rollback
Throws:
java.sql.SQLException - if an error occurs

DistributedRequestManager

public DistributedRequestManager(DistributedVirtualDatabase vdb,
                                 AbstractScheduler scheduler,
                                 AbstractLoadBalancer loadBalancer,
                                 AbstractRecoveryLog recoveryLog,
                                 long beginTimeout,
                                 long commitTimeout,
                                 long rollbackTimeout)
                          throws java.sql.SQLException
Creates a new DistributedRequestManager instance without cache.

Parameters:
vdb - the virtual database this request manager belongs to
scheduler - the Request Scheduler to use
loadBalancer - the Request Load Balancer to use
recoveryLog - the Log Recovery to use
beginTimeout - timeout in seconds for begin
commitTimeout - timeout in seconds for commit
rollbackTimeout - timeout in seconds for rollback
Throws:
java.sql.SQLException - if an error occurs

DistributedRequestManager

public DistributedRequestManager(DistributedVirtualDatabase vdb,
                                 AbstractScheduler scheduler,
                                 AbstractRequestCache cache,
                                 AbstractLoadBalancer loadBalancer,
                                 AbstractRecoveryLog recoveryLog,
                                 long beginTimeout,
                                 long commitTimeout,
                                 long rollbackTimeout)
                          throws java.sql.SQLException
Creates a new DistributedRequestManager instance without cache.

Parameters:
vdb - the virtual database this request manager belongs to
scheduler - the Request Scheduler to use
cache - a Query Cache implementation
loadBalancer - the Request Load Balancer to use
recoveryLog - the Log Recovery to use
beginTimeout - timeout in seconds for begin
commitTimeout - timeout in seconds for commit
rollbackTimeout - timeout in seconds for rollback
Throws:
java.sql.SQLException - if an error occurs


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