|
|||||||||||
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.RollbackTask
Task to rollback a transaction.
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 | |
RollbackTask(int nbToComplete,
int totalNb,
long timeout,
java.lang.String login,
long transactionId)
Rollbacks a transaction given a login and a transaction id. |
Method Summary | |
void |
executeTask(BackendWorkerThread backendThread)
Rollbacks a 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 RollbackTask(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 mslogin
- 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 |