⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 driverdelegate.java

📁 定时器开源项目, 相对于 jcrontab, Quartz 算是更完整的一个项目, 随著开发的版本上来, 他已经脱离只是写在程序里面的计时器, 在指定的时间或区间, 处理所指定的事件. 也加入了 se
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
     *         associated with the given trigger     */    public JobDetail selectJobForTrigger(Connection conn, String triggerName,            String groupName, ClassLoadHelper loadHelper)         throws ClassNotFoundException, SQLException;    /**     * <p>     * Select the stateful jobs which are referenced by triggers in the given     * trigger group.     * </p>     *      * @param conn     *          the DB Connection     * @param groupName     *          the trigger group     * @return a List of Keys to jobs.     */    public List selectStatefulJobsOfTriggerGroup(Connection conn,            String groupName) throws SQLException;    /**     * <p>     * Select the triggers for a job     * </p>     *      * @param conn     *          the DB Connection     * @param jobName     *          the name of the trigger     * @param groupName     *          the group containing the trigger     * @return an array of <code>(@link org.quartz.Trigger)</code> objects     *         associated with a given job.     * @throws SQLException     */    public Trigger[] selectTriggersForJob(Connection conn, String jobName,            String groupName) throws SQLException, ClassNotFoundException,            IOException;    /**     * <p>     * Select the triggers for a calendar     * </p>     *      * @param conn     *          the DB Connection     * @param jobName     *          the name of the trigger     * @param groupName     *          the group containing the trigger     * @return an array of <code>(@link org.quartz.Trigger)</code> objects     *         associated with a given job.     * @throws SQLException     */    public Trigger[] selectTriggersForCalendar(Connection conn, String calName)            throws SQLException, ClassNotFoundException, IOException;    /**     * <p>     * Select a trigger.     * </p>     *      * @param conn     *          the DB Connection     * @param triggerName     *          the name of the trigger     * @param groupName     *          the group containing the trigger     * @return the <code>{@link org.quartz.Trigger}</code> object     */    public Trigger selectTrigger(Connection conn, String triggerName,            String groupName) throws SQLException, ClassNotFoundException,            IOException;    /**     * <p>     * Select a trigger' state value.     * </p>     *      * @param conn     *          the DB Connection     * @param triggerName     *          the name of the trigger     * @param groupName     *          the group containing the trigger     * @return the <code>{@link org.quartz.Trigger}</code> object     */    public String selectTriggerState(Connection conn, String triggerName,            String groupName) throws SQLException;    /**     * <p>     * Select a trigger' status (state & next fire time).     * </p>     *      * @param conn     *          the DB Connection     * @param triggerName     *          the name of the trigger     * @param groupName     *          the group containing the trigger     * @return a <code>TriggerStatus</code> object, or null     */    public TriggerStatus selectTriggerStatus(Connection conn,            String triggerName, String groupName) throws SQLException;    /**     * <p>     * Select the total number of triggers stored.     * </p>     *      * @param conn     *          the DB Connection     * @return the total number of triggers stored     */    public int selectNumTriggers(Connection conn) throws SQLException;    /**     * <p>     * Select all of the trigger group names that are stored.     * </p>     *      * @param conn     *          the DB Connection     * @return an array of <code>String</code> group names     */    public String[] selectTriggerGroups(Connection conn) throws SQLException;    /**     * <p>     * Select all of the triggers contained in a given group.     * </p>     *      * @param conn     *          the DB Connection     * @param groupName     *          the group containing the triggers     * @return an array of <code>String</code> trigger names     */    public String[] selectTriggersInGroup(Connection conn, String groupName)            throws SQLException;    /**     * <p>     * Select all of the triggers in a given state.     * </p>     *      * @param conn     *          the DB Connection     * @param state     *          the state the triggers must be in     * @return an array of trigger <code>Key</code> s     */    public Key[] selectTriggersInState(Connection conn, String state)            throws SQLException;    public int insertPausedTriggerGroup(Connection conn, String groupName)            throws SQLException;    public int deletePausedTriggerGroup(Connection conn, String groupName)            throws SQLException;    public int deleteAllPausedTriggerGroups(Connection conn)            throws SQLException;    public boolean isTriggerGroupPaused(Connection conn, String groupName)            throws SQLException;    public Set selectPausedTriggerGroups(Connection conn)        throws SQLException;        public boolean isExistingTriggerGroup(Connection conn, String groupName)            throws SQLException;    //---------------------------------------------------------------------------    // calendars    //---------------------------------------------------------------------------    /**     * <p>     * Insert a new calendar.     * </p>     *      * @param conn     *          the DB Connection     * @param calendarName     *          the name for the new calendar     * @param calendar     *          the calendar     * @return the number of rows inserted     * @throws IOException     *           if there were problems serializing the calendar     */    public int insertCalendar(Connection conn, String calendarName,            Calendar calendar) throws IOException, SQLException;    /**     * <p>     * Update a calendar.     * </p>     *      * @param conn     *          the DB Connection     * @param calendarName     *          the name for the new calendar     * @param calendar     *          the calendar     * @return the number of rows updated     * @throws IOException     *           if there were problems serializing the calendar     */    public int updateCalendar(Connection conn, String calendarName,            Calendar calendar) throws IOException, SQLException;    /**     * <p>     * Check whether or not a calendar exists.     * </p>     *      * @param conn     *          the DB Connection     * @param calendarName     *          the name of the calendar     * @return true if the trigger exists, false otherwise     */    public boolean calendarExists(Connection conn, String calendarName)            throws SQLException;    /**     * <p>     * Select a calendar.     * </p>     *      * @param conn     *          the DB Connection     * @param calendarName     *          the name of the calendar     * @return the Calendar     * @throws ClassNotFoundException     *           if a class found during deserialization cannot be found be     *           found     * @throws IOException     *           if there were problems deserializing the calendar     */    public Calendar selectCalendar(Connection conn, String calendarName)            throws ClassNotFoundException, IOException, SQLException;    /**     * <p>     * Check whether or not a calendar is referenced by any triggers.     * </p>     *      * @param conn     *          the DB Connection     * @param calendarName     *          the name of the calendar     * @return true if any triggers reference the calendar, false otherwise     */    public boolean calendarIsReferenced(Connection conn, String calendarName)            throws SQLException;    /**     * <p>     * Delete a calendar.     * </p>     *      * @param conn     *          the DB Connection     * @param calendarName     *          the name of the trigger     * @return the number of rows deleted     */    public int deleteCalendar(Connection conn, String calendarName)            throws SQLException;    /**     * <p>     * Select the total number of calendars stored.     * </p>     *      * @param conn     *          the DB Connection     * @return the total number of calendars stored     */    public int selectNumCalendars(Connection conn) throws SQLException;    /**     * <p>     * Select all of the stored calendars.     * </p>     *      * @param conn     *          the DB Connection     * @return an array of <code>String</code> calendar names     */    public String[] selectCalendars(Connection conn) throws SQLException;    //---------------------------------------------------------------------------    // trigger firing    //---------------------------------------------------------------------------    /**     * <p>     * Select the next time that a trigger will be fired.     * </p>     *      * @param conn     *          the DB Connection     * @return the next fire time, or 0 if no trigger will be fired     */    public long selectNextFireTime(Connection conn) throws SQLException;    /**     * <p>     * Select the trigger that will be fired at the given fire time.     * </p>     *      * @param conn     *          the DB Connection     * @param fireTime     *          the time that the trigger will be fired     * @return a <code>{@link org.quartz.utils.Key}</code> representing the     *         trigger that will be fired at the given fire time, or null if no     *         trigger will be fired at that time     */    public Key selectTriggerForFireTime(Connection conn, long fireTime)            throws SQLException;    /**     * <p>     * Insert a fired trigger.     * </p>     *      * @param conn     *          the DB Connection     * @param trigger     *          the trigger     * @param state     *          the state that the trigger should be stored in     * @return the number of rows inserted     */    public int insertFiredTrigger(Connection conn, Trigger trigger,            String state, JobDetail jobDetail) throws SQLException;    /**     * <p>     * Select the states of all fired-trigger records for a given trigger, or     * trigger group if trigger name is <code>null</code>.     * </p>     *      * @return a List of FiredTriggerRecord objects.     */    public List selectFiredTriggerRecords(Connection conn, String triggerName,            String groupName) throws SQLException;    /**     * <p>     * Select the states of all fired-trigger records for a given job, or job     * group if job name is <code>null</code>.     * </p>     *      * @return a List of FiredTriggerRecord objects.     */    public List selectFiredTriggerRecordsByJob(Connection conn, String jobName,            String groupName) throws SQLException;    /**     * <p>     * Select the states of all fired-trigger records for a given scheduler     * instance.     * </p>     *      * @return a List of FiredTriggerRecord objects.     */    public List selectInstancesFiredTriggerRecords(Connection conn,            String instanceName) throws SQLException;    /**     * <p>     * Delete a fired trigger.     * </p>     *      * @param conn     *          the DB Connection     * @param entryId     *          the fired trigger entry to delete     * @return the number of rows deleted     */    public int deleteFiredTrigger(Connection conn, String entryId)            throws SQLException;    /**     * <p>     * Get the number instances of the identified job currently executing.     * </p>     *      * @param conn     *          the DB Connection     * @return the number instances of the identified job currently executing.     */    public int selectJobExecutionCount(Connection conn, String jobName,            String jobGroup) throws SQLException;    /**     * <p>     * Insert a scheduler-instance state record.     * </p>     *      * @param conn     *          the DB Connection     * @return the number of inserted rows.     */    public int insertSchedulerState(Connection conn, String instanceId,            long checkInTime, long interval, String recoverer)            throws SQLException;    /**     * <p>     * Delete a scheduler-instance state record.     * </p>     *      * @param conn     *          the DB Connection     * @return the number of deleted rows.     */    public int deleteSchedulerState(Connection conn, String instanceId)            throws SQLException;    /**     * <p>     * A List of all current <code>SchedulerStateRecords</code>.     * </p>     *      * <p>     * If instanceId is not null, then only the record for the identified     * instance will be returned.     * </p>     *      * @param conn     *          the DB Connection     */    public List selectSchedulerStateRecords(Connection conn, String instanceId)            throws SQLException;}// EOF

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -