01: /**********************************************************************************
02: * $URL$
03: * $Id$
04: **********************************************************************************
05: *
06: * Copyright (c) 2003, 2004, 2005 The Regents of the University of Michigan, Trustees of Indiana University,
07: * Board of Trustees of the Leland Stanford, Jr., University, and The MIT Corporation
08: *
09: * Licensed under the Educational Community License Version 1.0 (the "License");
10: * By obtaining, using and/or copying this Original Work, you agree that you have read,
11: * understand, and will comply with the terms and conditions of the Educational Community License.
12: * You may obtain a copy of the License at:
13: *
14: * http://cvs.sakaiproject.org/licenses/license_1_0.html
15: *
16: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
17: * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
18: * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
19: * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20: * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21: *
22: **********************************************************************************/package org.sakaiproject.component.app.scheduler;
23:
24: import java.util.Date;
25:
26: import org.apache.commons.logging.Log;
27: import org.apache.commons.logging.LogFactory;
28:
29: public class TriggerEvent {
30: private String jobName;
31: private Date time;
32: private String eventType;
33:
34: protected static String TRIGGER_FIRED = "Fired";
35: protected static String TRIGGER_COMPLETE = "Complete";
36:
37: private static final Log LOG = LogFactory
38: .getLog(TriggerEvent.class);
39:
40: /**
41: * @return Returns the eventType.
42: */
43: public String getEventType() {
44: return eventType;
45: }
46:
47: /**
48: * @param eventType The eventType to set.
49: */
50: public void setEventType(String eventType) {
51: this .eventType = eventType;
52: }
53:
54: /**
55: * @return Returns the time.
56: */
57: public Date getTime() {
58: return time;
59: }
60:
61: /**
62: * @param time The time to set.
63: */
64: public void setTime(Date time) {
65: this .time = time;
66: }
67:
68: /**
69: * @return Returns the jobName.
70: */
71: public String getJobName() {
72: return jobName;
73: }
74:
75: /**
76: * @param jobName The jobName to set.
77: */
78: public void setJobName(String jobName) {
79: this.jobName = jobName;
80: }
81: }
|