KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quartz > impl > jdbcjobstore > FiredTriggerRecord


1 /*
2  * Copyright 2004-2005 OpenSymphony
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License. You may obtain a copy
6  * of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13  * License for the specific language governing permissions and limitations
14  * under the License.
15  *
16  */

17
18 /*
19  * Previously Copyright (c) 2001-2004 James House
20  */

21 package org.quartz.impl.jdbcjobstore;
22
23 import org.quartz.utils.Key;
24
25 /**
26  * <p>
27  * Conveys the state of a fired-trigger record.
28  * </p>
29  *
30  * @author James House
31  */

32 public class FiredTriggerRecord implements java.io.Serializable JavaDoc {
33
34     /*
35      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36      *
37      * Data members.
38      *
39      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40      */

41
42     private String JavaDoc fireInstanceId;
43
44     private long fireTimestamp;
45
46     private String JavaDoc schedulerInstanceId;
47
48     private Key triggerKey;
49
50     private String JavaDoc fireInstanceState;
51
52     private boolean triggerIsVolatile;
53
54     private Key jobKey;
55
56     private boolean jobIsStateful;
57
58     private boolean jobRequestsRecovery;
59
60     private int priority;
61
62     /*
63      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64      *
65      * Interface.
66      *
67      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68      */

69
70     public String JavaDoc getFireInstanceId() {
71         return fireInstanceId;
72     }
73
74     public long getFireTimestamp() {
75         return fireTimestamp;
76     }
77
78     public boolean isJobIsStateful() {
79         return jobIsStateful;
80     }
81
82     public Key getJobKey() {
83         return jobKey;
84     }
85
86     public String JavaDoc getSchedulerInstanceId() {
87         return schedulerInstanceId;
88     }
89
90     public Key getTriggerKey() {
91         return triggerKey;
92     }
93
94     public String JavaDoc getFireInstanceState() {
95         return fireInstanceState;
96     }
97
98     public void setFireInstanceId(String JavaDoc string) {
99         fireInstanceId = string;
100     }
101
102     public void setFireTimestamp(long l) {
103         fireTimestamp = l;
104     }
105
106     public void setJobIsStateful(boolean b) {
107         jobIsStateful = b;
108     }
109
110     public void setJobKey(Key key) {
111         jobKey = key;
112     }
113
114     public void setSchedulerInstanceId(String JavaDoc string) {
115         schedulerInstanceId = string;
116     }
117
118     public void setTriggerKey(Key key) {
119         triggerKey = key;
120     }
121
122     public void setFireInstanceState(String JavaDoc string) {
123         fireInstanceState = string;
124     }
125
126     public boolean isJobRequestsRecovery() {
127         return jobRequestsRecovery;
128     }
129
130     public boolean isTriggerIsVolatile() {
131         return triggerIsVolatile;
132     }
133
134     public void setJobRequestsRecovery(boolean b) {
135         jobRequestsRecovery = b;
136     }
137
138     public void setTriggerIsVolatile(boolean b) {
139         triggerIsVolatile = b;
140     }
141
142     public int getPriority() {
143         return priority;
144     }
145     
146
147     public void setPriority(int priority) {
148         this.priority = priority;
149     }
150     
151
152 }
153
154 // EOF
155
Popular Tags