public void setTaskInterval(String interval) throws Exception { long oldInterval = taskInterval; int pos = interval.indexOf('!'); if (pos == -1) { taskInterval = RetryIntervalls.parseIntervalOrNever(interval); disabledEndHour = -1; } else { taskInterval = RetryIntervalls.parseIntervalOrNever(interval.substring(0, pos)); int pos1 = interval.indexOf('-', pos); disabledStartHour = Integer.parseInt(interval.substring(pos + 1, pos1)); disabledEndHour = Integer.parseInt(interval.substring(pos1 + 1)); } if (getState() == STARTED && oldInterval != taskInterval) { scheduler.stopScheduler(timerIDCheckMD5, listenerID, timerListener); listenerID = scheduler.startScheduler(timerIDCheckMD5, taskInterval, timerListener); } }
protected void stopService() throws Exception { scheduler.stopScheduler(timerIDCheckMD5, listenerID, timerListener); super.stopService(); }
protected void startService() throws Exception { listenerID = scheduler.startScheduler(timerIDCheckMD5, taskInterval, timerListener); }
public void setSchedulerServiceName(ObjectName schedulerServiceName) { scheduler.setSchedulerServiceName(schedulerServiceName); }
public ObjectName getSchedulerServiceName() { return scheduler.getSchedulerServiceName(); }