Examples of JobSchedule


Examples of de.innovationgate.wgpublisher.scheduler.JobSchedule

                    continue;
                }
               
                task.setDescription(job.getDescription());
               
                JobSchedule schedule = null;
                if (job.getSchedule() != null && !job.getSchedule().trim().equals("")) {
                    schedule = new JobSchedule();
                    schedule.setEnabled(true);
                    schedule.setScheduleData(job.getSchedule());
                    schedule.setType(JobSchedule.TYPE_CRON);
                }
               
                Job schedulerJob = getScheduler().addCustomTaskJob(jobName, task, false, schedule);
                schedulerJob.setDescription(job.getDescription());
                schedulerJob.getOptions().put("database", db.getDbReference());
View Full Code Here

Examples of org.platformlayer.core.model.JobSchedule

  public void handler() throws OpsException {
    if (OpsContext.isConfigure()) {
      String key = model.getKey().getUrl();
      PlatformLayerKey target = model.targetItem;
      PlatformLayerEndpointInfo endpoint = platformLayer.getEndpointInfo(target);
      JobSchedule schedule = model.schedule;
      Action action = model.action;

      actionScheduler.putJob(key, endpoint, schedule, target, action);
    }
  }
View Full Code Here

Examples of org.platformlayer.core.model.JobSchedule

  private SchedulerRecord fromDb(SchedulerRecordEntity in) throws OpsException {
    SchedulerRecord out = new SchedulerRecord();
    out.key = in.key;

    out.schedule = new JobSchedule();
    out.schedule.base = in.scheduleBase;
    out.schedule.interval = in.scheduleInterval;

    ActionTask task = new ActionTask();
    out.task = task;
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.