Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.controller.loadbalancer.tasks.KillThreadTask Class Reference

Inheritance diagram for org.objectweb.cjdbc.controller.loadbalancer.tasks.KillThreadTask:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.controller.loadbalancer.tasks.KillThreadTask:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KillThreadTask (int nbToComplete, int totalNb)
void executeTask (BackendWorkerThread backendThread) throws SQLException
String toString ()

Detailed Description

This task is used to kill backend worker threads.

Author:
Emmanuel Cecchet

Julie Marguerite

Version:
1.0

Definition at line 38 of file KillThreadTask.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.controller.loadbalancer.tasks.KillThreadTask.KillThreadTask int  nbToComplete,
int  totalNb
 

Creates a new KillThreadTask instance that must be executed by nbToComplete backend threads

Parameters:
nbToComplete number of threads that must succeed before returning
totalNb total number of threads

Definition at line 48 of file KillThreadTask.java.

00049   {
00050     super(nbToComplete, totalNb);
00051   }


Member Function Documentation

void org.objectweb.cjdbc.controller.loadbalancer.tasks.KillThreadTask.executeTask BackendWorkerThread  backendThread  )  throws SQLException [virtual]
 

This function does nothing.

Parameters:
backendThread the backend thread that will execute the task
Exceptions:
SQLException if an error occurs

Implements org.objectweb.cjdbc.controller.loadbalancer.tasks.AbstractTask.

Definition at line 59 of file KillThreadTask.java.

References org.objectweb.cjdbc.controller.loadbalancer.tasks.AbstractTask.notifySuccess().

00060   {
00061     backendThread.kill();
00062     notifySuccess();
00063   }

String org.objectweb.cjdbc.controller.loadbalancer.tasks.KillThreadTask.toString  ) 
 

See also:
java.lang.Object#toString()

Definition at line 68 of file KillThreadTask.java.

00069   {
00070     return "KillThreadTask";
00071   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:04:17 2005 for C-JDBC by  doxygen 1.3.9.1