org.objectweb.cjdbc.controller.loadbalancer.tasks
Class ReadStoredProcedureTask
java.lang.Object
org.objectweb.cjdbc.controller.loadbalancer.tasks.AbstractTask
org.objectweb.cjdbc.controller.loadbalancer.tasks.ReadStoredProcedureTask
- public class ReadStoredProcedureTask
- extends AbstractTask
Executes a StoredProcedure call that returns a ResultSet.
- Version:
- 1.0
- Author:
- Emmanuel Cecchet
| Fields inherited from class org.objectweb.cjdbc.controller.loadbalancer.tasks.AbstractTask |
|
|
Method Summary |
void |
execute(BackendWorkerThread backendThread)
Call a stored procedure that returns a ResultSet on
the given backend thread. |
java.sql.ResultSet |
getResult()
Returns the result. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
proc
private StoredProcedure proc
result
private java.sql.ResultSet result
ReadStoredProcedureTask
public ReadStoredProcedureTask(int nbToComplete,
int totalNb,
StoredProcedure proc)
- Creates a new
ReadStoredProcedureTask.
- Parameters:
nbToComplete - number of threads that must succeed before returningtotalNb - total number of threadsproc - the StoredProcedure to call
execute
public void execute(BackendWorkerThread backendThread)
throws java.sql.SQLException
- Call a stored procedure that returns a ResultSet on
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
getResult
public java.sql.ResultSet getResult()
- Returns the result.
- Returns:
- a
ResultSet
toString
public java.lang.String toString()
- See Also:
Object.toString()
Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.