1 22 package org.jboss.varia.scheduler.example; 23 24 import java.util.Date ; 25 26 import org.jboss.logging.Logger; 27 28 import org.jboss.varia.scheduler.Schedulable; 29 30 37 public class SchedulableExample 38 implements Schedulable 39 { 40 41 private static final Logger log = Logger.getLogger(SchedulableExample.class); 42 43 private String mName; 44 private int mValue; 45 46 public SchedulableExample(String pName, int pValue) 47 { 48 mName = pName; 49 mValue = pValue; 50 } 51 52 55 public void perform(Date pTimeOfCall, long pRemainingRepetitions) 56 { 57 log.info("Schedulable Examples is called at: " + pTimeOfCall + 58 ", remaining repetitions: " + pRemainingRepetitions + 59 ", test, name: " + mName + ", value: " + mValue); 60 } 61 } 62 | Popular Tags |