Examples of SchedulingService


Examples of com.espertech.esper.schedule.SchedulingService

                scheduleCallback();
                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().aOutputRateConditionScheduledEval();}
            }
        };
        EPStatementHandleCallback handle = new EPStatementHandleCallback(context.getEpStatementAgentInstanceHandle(), callback);
        SchedulingService schedulingService = context.getStatementContext().getSchedulingService();
        long nextScheduledTime = ScheduleComputeHelper.computeDeltaNextOccurance(factory.getScheduleSpec(), schedulingService.getTime());
        schedulingService.add(nextScheduledTime, handle, scheduleSlot);
    }
View Full Code Here

Examples of com.espertech.esper.schedule.SchedulingService

                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().aContextScheduledEval();}
            }
        };
        EPStatementAgentInstanceHandle agentHandle = new EPStatementAgentInstanceHandle(statementContext.getEpStatementHandle(), statementContext.getDefaultAgentInstanceLock(), -1, new StatementAgentInstanceFilterVersion());
        scheduleHandle = new EPStatementHandleCallback(agentHandle, scheduleCallback);
        SchedulingService schedulingService = statementContext.getSchedulingService();
        long nextScheduledTime = ScheduleComputeHelper.computeDeltaNextOccurance(spec.getSchedule(), schedulingService.getTime());
        statementContext.getSchedulingService().add(nextScheduledTime, scheduleHandle, scheduleSlot);
    }
View Full Code Here

Examples of com.espertech.esper.schedule.SchedulingService

                OutputConditionCrontab.this.outputCallback.continueOutputProcessing(DO_OUTPUT, FORCE_UPDATE);
                scheduleCallback();
            }
        };
        EPStatementHandleCallback handle = new EPStatementHandleCallback(context.getEpStatementAgentInstanceHandle(), callback);
        SchedulingService schedulingService = context.getStatementContext().getSchedulingService();
        long nextScheduledTime = ScheduleComputeHelper.computeDeltaNextOccurance(factory.getScheduleSpec(), schedulingService.getTime());
        schedulingService.add(nextScheduledTime, handle, scheduleSlot);
    }
View Full Code Here

Examples of com.espertech.esper.schedule.SchedulingService

                callback.rangeNotification(Collections.<String, Object>emptyMap(), ContextControllerConditionCrontab.this, null, null, filterAddendum);
            }
        };
        EPStatementAgentInstanceHandle agentHandle = new EPStatementAgentInstanceHandle(statementContext.getEpStatementHandle(), statementContext.getDefaultAgentInstanceLock(), -1, new StatementAgentInstanceFilterVersion());
        scheduleHandle = new EPStatementHandleCallback(agentHandle, scheduleCallback);
        SchedulingService schedulingService = statementContext.getSchedulingService();
        long nextScheduledTime = ScheduleComputeHelper.computeDeltaNextOccurance(spec.getSchedule(), schedulingService.getTime());
        statementContext.getSchedulingService().add(nextScheduledTime, scheduleHandle, scheduleSlot);
    }
View Full Code Here

Examples of com.espertech.esper.schedule.SchedulingService

                callback.rangeNotification(Collections.<String, Object>emptyMap(), ContextControllerConditionCrontab.this, null, null, filterAddendum);
            }
        };
        EPStatementAgentInstanceHandle agentHandle = new EPStatementAgentInstanceHandle(statementContext.getEpStatementHandle(), statementContext.getDefaultAgentInstanceLock(), -1, new StatementAgentInstanceFilterVersion());
        scheduleHandle = new EPStatementHandleCallback(agentHandle, scheduleCallback);
        SchedulingService schedulingService = statementContext.getSchedulingService();
        long nextScheduledTime = ScheduleComputeHelper.computeDeltaNextOccurance(spec.getSchedule(), schedulingService.getTime());
        statementContext.getSchedulingService().add(nextScheduledTime, scheduleHandle, scheduleSlot);
    }
View Full Code Here

Examples of org.molgenis.services.SchedulingService

      Trigger t = TriggerUtils.makeMinutelyTrigger();
      t.setStartTime(new Date());
      t.setName("MolgenisCleanTmpDirServiceTrigger");

      // schedule it
      SchedulingService schedulingService = mc.getSchedulingService();
      // Scheduler scheduler = mc.getScheduler();

      // if(!scheduler.isStarted())
      // {
      // throw new SchedulerException("Scheduler is not active");
      // }
      //
      // scheduler.start();
      // scheduler.scheduleJob(job, t);
      HashMap<Object, Object> dataMap2 = new HashMap<Object, Object>();
      // dataMap2.put("cleanTmpDirTask", task);
      schedulingService.scheduleOnce(dataMap2, CleanTmpDirJob.class);
      // schedulingService.shutdown();

      System.out.println("MolgenisCleanTmpDirService initialized.");

    }
View Full Code Here

Examples of org.molgenis.services.SchedulingService

    // System.err.println("FATAL EXCEPTION: failure for starting scheduler in MolgenisContext.");
    // e.printStackTrace();
    // System.exit(0);
    // }

    this.schedulingService = new SchedulingService();
    // try
    // {
    // this.schedulingService.start();
    // }
    // catch (SchedulerException e)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.