/** * (C) Copyright 2013 Jabylon (http://www.jabylon.org) and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ /** * */ package org.jabylon.scheduler; import java.util.Map; import org.eclipse.core.runtime.IProgressMonitor; /** * @author Johannes Utzig (jutzig.dev@googlemail.com) * */ public interface JobExecution { /** * the property for the schedule (cron syntax) */ public static final String PROP_JOB_SCHEDULE = "schedule"; /** * boolean property to decide if a job is active or inactive */ public static final String PROP_JOB_ACTIVE = "active"; /** * a human readable description of this job */ public static final String PROP_JOB_DESCRIPTION = "description"; /** * a human readable name for this job */ public static final String PROP_JOB_NAME = "name"; public void run(IProgressMonitor monitor, Map<String, Object> jobContext) throws Exception; boolean retryOnError(); public String getID(); }