protected TimerEntity createTweetTimer(String msg, Date duedate) { TimerEntity timer = new TimerEntity(); timer.setJobHandlerType("tweet"); timer.setJobHandlerConfigurationRaw(msg); timer.setDuedate(duedate); return timer; }
protected void scheduleSuspensionStateUpdate(CommandContext commandContext) { TimerEntity timer = new TimerEntity(); JobHandlerConfiguration jobHandlerConfiguration = getJobHandlerConfiguration(); timer.setDuedate(executionDate); timer.setJobHandlerType(getDelayedExecutionJobHandlerType()); timer.setJobHandlerConfigurationRaw(jobHandlerConfiguration.toCanonicalString()); commandContext.getJobManager().schedule(timer); }
protected void scheduleSuspensionStateUpdate(CommandContext commandContext) { TimerEntity timer = new TimerEntity(); JobHandlerConfiguration jobHandlerConfiguration = getJobHandlerConfiguration(); timer.setDuedate(executionDate); timer.setJobHandlerType(getDelayedExecutionJobHandlerType()); timer.setJobHandlerConfigurationRaw(jobHandlerConfiguration.toCanonicalString()); commandContext.getJobManager().schedule(timer); }
protected TimerEntity createTweetTimer(String msg, Date duedate) { TimerEntity timer = new TimerEntity(); timer.setJobHandlerType("tweet"); timer.setJobHandlerConfigurationRaw(msg); timer.setDuedate(duedate); return timer; }
protected void scheduleSuspensionStateUpdate(CommandContext commandContext) { TimerEntity timer = new TimerEntity(); JobHandlerConfiguration jobHandlerConfiguration = getJobHandlerConfiguration(); timer.setDuedate(executionDate); timer.setJobHandlerType(getDelayedExecutionJobHandlerType()); timer.setJobHandlerConfigurationRaw(jobHandlerConfiguration.toCanonicalString()); commandContext.getJobManager().schedule(timer); }