|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.controller.loadbalancer.tasks.AbstractTask org.objectweb.cjdbc.controller.loadbalancer.tasks.BeginTask
Task to begin a transaction. Note that this task does not properly set the transaction isolation but this is not a real issue since it is meant to be used by the recovery log that does not execute reads and provide its own serial order.
Field Summary | |
private java.lang.String |
login
Login used by the connection. |
private long |
timeout
Request timeout in milliseconds. |
private long |
transactionId
Unique transaction identifier. |
Fields inherited from class org.objectweb.cjdbc.controller.loadbalancer.tasks.AbstractTask |
|
Constructor Summary | |
BeginTask(int nbToComplete,
int totalNb,
long timeout,
java.lang.String login,
long transactionId)
Begins a new transaction given a login and a transaction id. |
Method Summary | |
void |
executeTask(BackendWorkerThread backendThread)
Begins a new transaction with the given backend thread. |
java.lang.String |
toString()
|
Methods inherited from class org.objectweb.cjdbc.controller.loadbalancer.tasks.AbstractTask |
execute, getExceptions, getExecutionStarted, getFailed, getGeneratedKeysResultSet, getNbToComplete, getSuccess, getTotalNb, hasCompleted, hasFullyCompleted, hasTid, notifyCompletion, notifyFailure, notifySuccess, setExpiredTimeout, setGeneratedKeysResultSet, setHasTid, setTotalNb |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String login
private long transactionId
private long timeout
Constructor Detail |
public BeginTask(int nbToComplete, int totalNb, long timeout, java.lang.String login, long transactionId)
nbToComplete
- number of threads that must succeed before returningtotalNb
- total number of threadstimeout
- request timeout in millisecondslogin
- the login used by the connectiontransactionId
- a unique transaction identifierMethod Detail |
public void executeTask(BackendWorkerThread backendThread) throws java.sql.SQLException
executeTask
in class AbstractTask
backendThread
- the backend thread that will execute the task
java.sql.SQLException
- if an error occurspublic java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |