|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer
org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1
org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1ec
RAIDb-1 load balancer.
This class is an abstract call because the read requests coming from the request manager are NOT treated here but in the subclasses. Transaction management and write requests are broadcasted to all backends.
Field Summary | |
protected java.util.ArrayList |
backendReadThreads
|
protected ErrorCheckingPolicy |
errorCheckingPolicy
|
protected static Trace |
logger
|
protected int |
nbOfConcurrentReads
|
Fields inherited from class org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1 |
backendBlockingThreads, backendBlockingThreadsRWLock, backendNonBlockingThreads, backendNonBlockingThreadsRWLock |
Fields inherited from class org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer |
parsingGranularity, raidbLevel, vdb |
Constructor Summary | |
RAIDb1ec(VirtualDatabase vdb,
WaitForCompletionPolicy waitForCompletionPolicy,
ErrorCheckingPolicy errorCheckingPolicy,
int nbOfConcurrentReads)
Creates a new RAIDb-1 Round Robin request load balancer. |
Method Summary | |
void |
disableBackend(DatabaseBackend db)
Disables a backend that was previously enabled. |
void |
enableBackend(DatabaseBackend db)
Enables a backend that was previously disabled. |
java.lang.String |
getXmlInformation()
Get information about the Request Load Balancer in xml |
Methods inherited from class org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1 |
begin, commit, execReadRequest, execReadStoredProcedure, executeRequest, execWriteRequest, execWriteRequestWithKeys, execWriteStoredProcedure, getRaidb1Xml, getXmlWaitPolicy, rollback, waitForAllWritesToComplete, waitForAllWritesToComplete, waitForAllWritesToComplete |
Methods inherited from class org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer |
getInformation, getParsingGranularity, getRAIDbLevel, setParsingGranularity, setRAIDbLevel, setWeight |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.ArrayList backendReadThreads
protected int nbOfConcurrentReads
protected ErrorCheckingPolicy errorCheckingPolicy
protected static Trace logger
Constructor Detail |
public RAIDb1ec(VirtualDatabase vdb, WaitForCompletionPolicy waitForCompletionPolicy, ErrorCheckingPolicy errorCheckingPolicy, int nbOfConcurrentReads) throws java.sql.SQLException
vdb
- the virtual database this load balancer belongs towaitForCompletionPolicy
- how many backends must complete before
returning the result?errorCheckingPolicy
- policy to apply for error checking.nbOfConcurrentReads
- number of concurrent reads allowed
java.sql.SQLException
- if an error occursMethod Detail |
public void enableBackend(DatabaseBackend db) throws java.sql.SQLException
Ask the corresponding connection manager to initialize the connections if needed.
No sanity checks are performed by this function.
enableBackend
in class RAIDb1
db
- the database backend to enable
java.sql.SQLException
- if an error occurspublic void disableBackend(DatabaseBackend db) throws java.sql.SQLException
Ask the corresponding connection manager to finalize the connections if needed.
No sanity checks are performed by this function.
disableBackend
in class RAIDb1
db
- the database backend to disable
java.sql.SQLException
- if an error occurspublic java.lang.String getXmlInformation()
AbstractLoadBalancer
getXmlInformation
in class RAIDb1
AbstractLoadBalancer.getXmlInformation()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |