Package org.platformlayer.core.model

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


  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

Related Classes of org.platformlayer.core.model.JobSchedule

Copyright © 2018 www.massapicom. 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.