|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.cjdbc.controller.loadbalancer.tasks.AbstractTask
org.objectweb.cjdbc.controller.loadbalancer.tasks.BeginTask
Task to begin a transaction.
Field Summary | |
private java.lang.String |
login
Login used by the connection. |
private long |
timeout
Request timeout in milliseconds. |
private int |
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,
int transactionId)
Begins a new transaction given a login and a transaction id. |
Method Summary | |
void |
execute(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 |
getExceptions, getFailed, getNbToComplete, getSuccess, getTotalNb, notifyFailure, notifySuccess, 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 int transactionId
private long timeout
Constructor Detail |
public BeginTask(int nbToComplete, int totalNb, long timeout, java.lang.String login, int 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 execute(BackendWorkerThread backendThread) throws java.sql.SQLException
execute
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 |