All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blazebit.quartz.plugin.FireHistoryUtils Maven / Gradle / Ivy

There is a newer version: 0.1.14
Show newest version
/*
 * Copyright 2011 Blazebit
 */
package com.blazebit.quartz.plugin;

import java.util.List;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.impl.StdSchedulerFactory;

/**
 * 
 * @author Christian Beikov
 * @since 0.1.2
 */
public class FireHistoryUtils {

	public static List getEntries() throws SchedulerException {
		Scheduler sched = StdSchedulerFactory.getDefaultScheduler();
		FireHistoryPlugin plugin = (FireHistoryPlugin) sched
				.getListenerManager().getTriggerListener("FireHistoryPlugin");

		if (plugin == null)
			throw new SchedulerException("Plugin not installed!");

		return plugin.getEntries();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy