1 package de.webman.util.scheduler; 2 3 import org.apache.log4j.Category; 4 5 6 16 public class ServiceThread 17 implements Runnable 18 { 19 20 23 private static Category cat = Category.getInstance(ServiceThread.class); 24 25 28 private String id = ""; 29 30 33 private SchedulerService srv = null; 34 35 36 42 ServiceThread(String _id, SchedulerService _srv) { 43 srv = _srv; 44 id = _id; 45 } 46 47 50 public void run() { 51 try { 52 cat.debug ("execute scheduling service: '" + id + "'"); 53 srv.execute(); 54 } 55 catch (SchedulerException e) { 56 cat.error("catch scheduling exception during executing of service '" + id + "': " + e); 57 } 58 59 60 } 61 } 62 63 75 | Popular Tags |