Package org.quartz

Examples of org.quartz.JobDataMap


        return jobDetail;
    }

    @Override
    protected JobDataMap getJobDataMap() {
        JobDataMap jdm = new JobDataMap();
        sender = initMessageSender(parameters);
        jdm.put(BLOCKING_SENDER,sender);
        jdm.put(PROCESSOR_INSTANCE,this);
        return jdm;
    }
View Full Code Here


   public ReplScheduler() {
     
   }
  
   public void execute(JobExecutionContext context) throws JobExecutionException {
      JobDataMap map = context.getJobDetail().getJobDataMap();
      String operation = map.getString("arg0"); // can not be null
      String prefix = map.getString("arg1"); // can be null
      String dest = map.getString("arg2"); // can be null
      Global glob = (Global)map.get(GlobalInfo.ORIGINAL_ENGINE_GLOBAL);
      if (glob == null) {
         log.severe("Could not find the ServerScope: can not execute the scheduler job");
      }
      else {
         ReplManagerPlugin plugin = (ReplManagerPlugin)glob.getPluginRegistry().getPlugin(ReplManagerPlugin.getPluginName());
View Full Code Here

     */
    public EasyBeansJobDetail(final String name, final String group, final EasyBeansJobDetailData jobDetailData) {
        super(name, group, EasyBeansJob.class);

        // Get the data map (that is built if null)
        JobDataMap jobDataMap = getJobDataMap();

        // Add the data for this job
        jobDataMap.put(DATA_KEY, jobDetailData);

    }
View Full Code Here

   *
   * @see org.quartz.Job#execute(org.quartz.JobExecutionContext)
   */
  public void execute(JobExecutionContext context) throws JobExecutionException
  {
    JobDataMap dataMap = context.getJobDetail().getJobDataMap();
    WrappedProcess process = (WrappedProcess) dataMap.get("process");
    process.startByTimer();
  }
View Full Code Here

   *
   * @see org.quartz.Job#execute(org.quartz.JobExecutionContext)
   */
  public void execute(JobExecutionContext context) throws JobExecutionException
  {
    JobDataMap dataMap = context.getJobDetail().getJobDataMap();
    WrappedProcess process = (WrappedProcess) dataMap.get("process");
    process.stop();
  }
View Full Code Here

   *
   * @see org.quartz.Job#execute(org.quartz.JobExecutionContext)
   */
  public void execute(JobExecutionContext context) throws JobExecutionException
  {
    JobDataMap dataMap = context.getJobDetail().getJobDataMap();
    WrappedProcess process = (WrappedProcess) dataMap.get("process");
    process.startByTimer();
  }
View Full Code Here

   *
   * @see org.quartz.Job#execute(org.quartz.JobExecutionContext)
   */
  public void execute(JobExecutionContext context) throws JobExecutionException
  {
    JobDataMap dataMap = context.getJobDetail().getJobDataMap();
    WrappedProcess process = (WrappedProcess) dataMap.get("process");
    process.restartByTimer();
  }
View Full Code Here

   *
   * @see org.quartz.Job#execute(org.quartz.JobExecutionContext)
   */
  public void execute(JobExecutionContext context) throws JobExecutionException
  {
    JobDataMap dataMap = context.getJobDetail().getJobDataMap();
    WrappedProcess process = (WrappedProcess) dataMap.get("process");
    process.stop();
  }
View Full Code Here

   *
   * @see org.quartz.Job#execute(org.quartz.JobExecutionContext)
   */
  public void execute(JobExecutionContext context) throws JobExecutionException
  {
    JobDataMap dataMap = context.getJobDetail().getJobDataMap();
    WrappedProcess process = (WrappedProcess) dataMap.get("process");
    process.startByTimer();
  }
View Full Code Here

   * @return the simple trigger
   */
  private MySimpleTrigger getSimpleTrigger(String key)
  {
    JobDetail jobDetail = new JobDetail();
    JobDataMap jobDataMap = new JobDataMap();
    jobDataMap.put("process", _wp);
    jobDetail.setJobDataMap(jobDataMap);

    Class jobClass = getJobClass(key);
    if (jobClass == null)
      return null;
View Full Code Here

TOP

Related Classes of org.quartz.JobDataMap

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.