org.objectweb.cjdbc.controller.loadbalancer.tasks
Class RollbackTask

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.loadbalancer.tasks.AbstractTask
      extended byorg.objectweb.cjdbc.controller.loadbalancer.tasks.RollbackTask

public class RollbackTask
extends AbstractTask

Task to rollback a transaction.

Version:
1.0
Author:
Emmanuel Cecchet, Julie Marguerite

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

login

private java.lang.String login
Login used by the connection.


transactionId

private int transactionId
Unique transaction identifier.


timeout

private long timeout
Request timeout in milliseconds.

Constructor Detail

RollbackTask

public RollbackTask(int nbToComplete,
                    int totalNb,
                    long timeout,
                    java.lang.String login,
                    int transactionId)
Rollbacks a transaction given a login and a transaction id.

Parameters:
nbToComplete - number of threads that must succeed before returning
totalNb - total number of threads
timeout - request timeout in ms
login - the login used by the connection
transactionId - a unique transaction identifier
Method Detail

execute

public void execute(BackendWorkerThread backendThread)
             throws java.sql.SQLException
Rollbacks a transaction with the given backend thread.

Specified by:
execute in class AbstractTask
Parameters:
backendThread - the backend thread that will execute the task
Throws:
java.sql.SQLException - if an error occurs

toString

public java.lang.String toString()
See Also:
Object.toString()


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