package org.jboss.varia.scheduler.example;
import java.util.Date;
import org.jboss.logging.Logger;
import org.jboss.varia.scheduler.Schedulable;
public class SchedulableExample
implements Schedulable
{
private static final Logger log = Logger.getLogger(SchedulableExample.class);
private String mName;
private int mValue;
public SchedulableExample(String pName, int pValue)
{
mName = pName;
mValue = pValue;
}
public void perform(Date pTimeOfCall, long pRemainingRepetitions)
{
log.info("Schedulable Examples is called at: " + pTimeOfCall +
", remaining repetitions: " + pRemainingRepetitions +
", test, name: " + mName + ", value: " + mValue);
}
}