1 package org.apache.turbine.modules.scheduledjob; 2 3 18 19 import org.apache.turbine.modules.ScheduledJob; 20 import org.apache.turbine.services.schedule.JobEntry; 21 22 31 public class SimpleJob 32 extends ScheduledJob 33 { 34 35 private static int counter = 0; 36 37 43 public void run(JobEntry job) 44 throws Exception  45 { 46 counter++; 47 System.out.println("\n\nI AM RUNNING!\n\n"); 48 49 } 50 55 public static int getCounter() 56 { 57 return counter; 58 } 59 60 65 public static void setCounter(int i) 66 { 67 counter = i; 68 } 69 } 70 | Popular Tags |