Package org.quartz.utils

Examples of org.quartz.utils.Key


            ps.setString(1, groupName);
            setBoolean(ps, 2, true);
            rs = ps.executeQuery();

            while (rs.next()) {
                jobList.add(new Key(rs.getString(COL_JOB_NAME.toLowerCase()), rs
                        .getString(COL_JOB_GROUP.toLowerCase())));
            }
        } finally {
            closeResultSet(rs);
            closeStatement(ps);
View Full Code Here


                if (nextFireTime > 0) {
                    nft = new Date(nextFireTime);
                }

                status = new TriggerStatus(state, nft);
                status.setKey(new Key(triggerName, groupName));
                status.setJobKey(new Key(jobName, jobGroup));
            }

            return status;
        } finally {
            closeResultSet(rs);
View Full Code Here

            ps.setString(1, STATE_WAITING);
            ps.setBigDecimal(2, new BigDecimal(String.valueOf(fireTime)));
            rs = ps.executeQuery();

            if (rs.next()) {
                return new Key(rs.getString(COL_TRIGGER_NAME.toLowerCase()), rs
                        .getString(COL_TRIGGER_GROUP.toLowerCase()));
            } else {
                return null;
            }
        } finally {
View Full Code Here

            ps.setBigDecimal(2, new BigDecimal(String.valueOf(noLaterThan)));
            ps.setBigDecimal(3, new BigDecimal(String.valueOf(noEarlierThan)));
            rs = ps.executeQuery();
           
            while (rs.next() && nextTriggers.size() < 5) {
                nextTriggers.add(new Key(
                        rs.getString(COL_TRIGGER_NAME),
                        rs.getString(COL_TRIGGER_GROUP)));
            }
           
            return nextTriggers;
View Full Code Here

                rec.setFireInstanceState(rs.getString(COL_ENTRY_STATE.toLowerCase()));
                rec.setFireTimestamp(rs.getLong(COL_FIRED_TIME.toLowerCase()));
                rec.setPriority(rs.getInt(COL_PRIORITY.toLowerCase()));
                rec.setSchedulerInstanceId(rs.getString(COL_INSTANCE_NAME.toLowerCase()));
                rec.setTriggerIsVolatile(getBoolean(rs, COL_IS_VOLATILE.toLowerCase()));
                rec.setTriggerKey(new Key(rs.getString(COL_TRIGGER_NAME.toLowerCase()), rs
                        .getString(COL_TRIGGER_GROUP.toLowerCase())));
                if (!rec.getFireInstanceState().equals(STATE_ACQUIRED)) {
                    rec.setJobIsStateful(getBoolean(rs, COL_IS_STATEFUL.toLowerCase()));
                    rec.setJobRequestsRecovery(rs
                            .getBoolean(COL_REQUESTS_RECOVERY.toLowerCase()));
                    rec.setJobKey(new Key(rs.getString(COL_JOB_NAME.toLowerCase()), rs
                            .getString(COL_JOB_GROUP.toLowerCase())));
                }
                lst.add(rec);
            }
View Full Code Here

                rec.setFireInstanceState(rs.getString(COL_ENTRY_STATE.toLowerCase()));
                rec.setFireTimestamp(rs.getLong(COL_FIRED_TIME.toLowerCase()));
                rec.setPriority(rs.getInt(COL_PRIORITY.toLowerCase()));
                rec.setSchedulerInstanceId(rs.getString(COL_INSTANCE_NAME.toLowerCase()));
                rec.setTriggerIsVolatile(getBoolean(rs, COL_IS_VOLATILE.toLowerCase()));
                rec.setTriggerKey(new Key(rs.getString(COL_TRIGGER_NAME.toLowerCase()), rs
                        .getString(COL_TRIGGER_GROUP.toLowerCase())));
                if (!rec.getFireInstanceState().equals(STATE_ACQUIRED)) {
                    rec.setJobIsStateful(getBoolean(rs, COL_IS_STATEFUL.toLowerCase()));
                    rec.setJobRequestsRecovery(rs
                            .getBoolean(COL_REQUESTS_RECOVERY.toLowerCase()));
                    rec.setJobKey(new Key(rs.getString(COL_JOB_NAME.toLowerCase()), rs
                            .getString(COL_JOB_GROUP.toLowerCase())));
                }
                lst.add(rec);
            }
View Full Code Here

                rec.setFireInstanceId(rs.getString(COL_ENTRY_ID.toLowerCase()));
                rec.setFireInstanceState(rs.getString(COL_ENTRY_STATE.toLowerCase()));
                rec.setFireTimestamp(rs.getLong(COL_FIRED_TIME.toLowerCase()));
                rec.setSchedulerInstanceId(rs.getString(COL_INSTANCE_NAME.toLowerCase()));
                rec.setTriggerIsVolatile(getBoolean(rs, COL_IS_VOLATILE.toLowerCase()));
                rec.setTriggerKey(new Key(rs.getString(COL_TRIGGER_NAME.toLowerCase()), rs
                        .getString(COL_TRIGGER_GROUP.toLowerCase())));
                if (!rec.getFireInstanceState().equals(STATE_ACQUIRED)) {
                    rec.setJobIsStateful(getBoolean(rs, COL_IS_STATEFUL.toLowerCase()));
                    rec.setJobRequestsRecovery(rs
                            .getBoolean(COL_REQUESTS_RECOVERY.toLowerCase()));
                    rec.setJobKey(new Key(rs.getString(COL_JOB_NAME.toLowerCase()), rs
                            .getString(COL_JOB_GROUP.toLowerCase())));
                }
                rec.setPriority(rs.getInt(COL_PRIORITY.toLowerCase()));
                lst.add(rec);
            }
View Full Code Here

            ArrayList list = new ArrayList();
            while (rs.next()) {
                String triggerName = rs.getString(COL_TRIGGER_NAME.toLowerCase());
                String groupName = rs.getString(COL_TRIGGER_GROUP.toLowerCase());
                list.add(new Key(triggerName, groupName));
            }
            Object[] oArr = list.toArray();
            Key[] kArr = new Key[oArr.length];
            System.arraycopy(oArr, 0, kArr, 0, oArr.length);
            return kArr;
View Full Code Here

            ArrayList list = new ArrayList();
            while (rs.next()) {
                String triggerName = rs.getString(COL_JOB_NAME.toLowerCase());
                String groupName = rs.getString(COL_JOB_GROUP.toLowerCase());
                list.add(new Key(triggerName, groupName));
            }
            Object[] oArr = list.toArray();
            Key[] kArr = new Key[oArr.length];
            System.arraycopy(oArr, 0, kArr, 0, oArr.length);
            return kArr;
View Full Code Here

            ArrayList list = new ArrayList();
            while (rs.next()) {
                String triggerName = rs.getString(COL_TRIGGER_NAME);
                String groupName = rs.getString(COL_TRIGGER_GROUP);
                list.add(new Key(triggerName, groupName));
            }
            Object[] oArr = list.toArray();
            Key[] kArr = new Key[oArr.length];
            System.arraycopy(oArr, 0, kArr, 0, oArr.length);
            return kArr;
View Full Code Here

TOP

Related Classes of org.quartz.utils.Key

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.