1 24 25 package org.objectweb.cjdbc.controller.loadbalancer.tasks; 26 27 import java.sql.SQLException ; 28 29 import org.objectweb.cjdbc.controller.loadbalancer.BackendWorkerThread; 30 31 38 public class KillThreadTask extends AbstractTask 39 { 40 41 48 public KillThreadTask(int nbToComplete, int totalNb) 49 { 50 super(nbToComplete, totalNb); 51 } 52 53 60 public void executeTask(BackendWorkerThread backendThread) 61 throws SQLException  62 { 63 backendThread.killWithoutDisablingBackend(); 64 notifySuccess(); 65 } 66 67 70 public String toString() 71 { 72 return "KillThreadTask"; 73 } 74 } | Popular Tags |