001: /**********************************************************************************
002: * $URL$
003: * $Id$
004: **********************************************************************************
005: *
006: * Copyright (c) 2005 The Regents of the University of Michigan, Trustees of Indiana University,
007: * Board of Trustees of the Leland Stanford, Jr., University, and The MIT Corporation
008: *
009: * Licensed under the Educational Community License Version 1.0 (the "License");
010: * By obtaining, using and/or copying this Original Work, you agree that you have read,
011: * understand, and will comply with the terms and conditions of the Educational Community License.
012: * You may obtain a copy of the License at:
013: *
014: * http://cvs.sakaiproject.org/licenses/license_1_0.html
015: *
016: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
017: * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
018: * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
019: * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
020: * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
021: *
022: **********************************************************************************/package org.sakaiproject.api.app.scheduler;
023:
024: import java.util.Map;
025: import java.util.Set;
026:
027: import org.apache.commons.dbcp.BasicDataSource;
028: import org.quartz.Scheduler;
029: import org.quartz.TriggerListener;
030:
031: /**
032: * @version $Id: SchedulerManager.java,v 1.1 2005/05/31 18:04:09 jlannan.iupui.edu Exp $
033: */
034: public interface SchedulerManager {
035:
036: /**
037: * @return Returns the globalTriggerListener.
038: */
039: public TriggerListener getGlobalTriggerListener();
040:
041: /**
042: * @param globalTriggerListener The globalTriggerListener to set.
043: */
044: public void setGlobalTriggerListener(
045: TriggerListener globalTriggerListener);
046:
047: /**
048: * @return Returns the serverId.
049: */
050: public String getServerId();
051:
052: /**
053: * @param serverId The serverId to set.
054: */
055: public void setServerId(String serverId);
056:
057: /**
058: * @return Returns the dataSource.
059: */
060: public BasicDataSource getDataSource();
061:
062: /**
063: * @param dataSource The dataSource to set.
064: */
065: public void setDataSource(BasicDataSource dataSource);
066:
067: /**
068: * @return Returns the qrtzQualifiedJobs.
069: */
070: public Map getQrtzQualifiedJobs();
071:
072: /**
073: * @param qrtzQualifiedJobs The qrtzQualifiedJobs to set.
074: */
075: public void setQrtzQualifiedJobs(Map qrtzQualifiedJobs);
076:
077: /**
078: * @return Returns the qrtzJobs.
079: */
080: public Set getQrtzJobs();
081:
082: /**
083: * @param qrtzJobs The qrtzJobs to set.
084: */
085: public void setQrtzJobs(Set qrtzJobs);
086:
087: /**
088: * @return Returns the qrtzPropFile.
089: */
090: public String getQrtzPropFile();
091:
092: /**
093: * @param qrtzPropFile The qrtzPropFile to set.
094: */
095: public void setQrtzPropFile(String qrtzPropFile);
096:
097: /**
098: * @return Returns the scheduler.
099: */
100: public Scheduler getScheduler();
101:
102: /**
103: * @param sched The sched to set.
104: */
105: public void setScheduler(Scheduler scheduler);
106:
107: /**
108: * set autoDdl
109: */
110: public void setAutoDdl(Boolean b);
111:
112: public Map getBeanJobs();
113:
114: public void registerBeanJob(String jobName, JobBeanWrapper job);
115:
116: public JobBeanWrapper getJobBeanWrapper(String beanWrapperId);
117: }
|