
io.mosip.registration.jobs.JobManager Maven / Gradle / Ivy
package io.mosip.registration.jobs;
import java.util.Map;
import org.quartz.JobDetail;
import org.quartz.JobExecutionContext;
import org.quartz.Trigger;
import io.mosip.registration.entity.SyncJobDef;
/**
* This class includes the functionalities of what transaction table needed,
* like getting job details.
*
*
* Includes getting job details based on {@link Trigger} information or
* {@link JobExecutionContext} or {@link JobDetail}.
*
*
* @author YASWANTH S
* @since 1.0.0
*
*/
public interface JobManager {
/**
* To get JobId using Job Execution Context
*
* @param context
* job execution context
* @return job id
*/
public String getJobId(JobExecutionContext context);
/**
* To get JobId using JobDetail
*
* @param jobDetail
* is job
* @return job id
*/
public String getJobId(JobDetail jobDetail);
/**
* To get the job by using trigger information
*
* @param trigger
* class
* @return SyncJob the entity
*/
public String getJobId(Trigger trigger);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy