1 32 33 package com.knowgate.scheduler.jobs; 34 35 import com.knowgate.debug.DebugFile; 36 import com.knowgate.dataobjs.DB; 37 import com.knowgate.scheduler.Job; 38 import com.knowgate.scheduler.Atom; 39 40 45 46 public class DummyJob extends Job { 47 48 public DummyJob() { 49 } 50 51 public void free() {} 52 53 public Object process(Atom oAtm) { 54 55 if (DebugFile.trace) { 56 DebugFile.writeln("Begin DummyJob.process()"); 57 DebugFile.incIdent(); 58 } 59 60 if (DebugFile.trace) DebugFile.writeln("job "+getString(DB.gu_job)+" processed atom "+String.valueOf(oAtm.getInt(DB.pg_atom))); 61 62 iPendingAtoms--; 64 65 if (DebugFile.trace) { 66 DebugFile.writeln("End DummyJob.process() : " + String.valueOf(iPendingAtoms)); 67 DebugFile.decIdent(); 68 } 69 70 return null; 71 } 73 } | Popular Tags |