KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quartz > ee > jmx > jboss > QuartzServiceMBean


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

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

22 package org.quartz.ee.jmx.jboss;
23
24 import org.jboss.system.ServiceMBean;
25
26 /**
27  * Interface exposed via JMX for MBean for configuring, starting, and
28  * binding to JNDI a Quartz Scheduler instance.
29  *
30  * <p>
31  * Sample MBean deployment descriptor:
32  * <a HREF="doc-files/quartz-service.xml" type="text/plain">quartz-service.xml</a>
33  * </p>
34  *
35  * <p>
36  * <b>Note:</b> The Scheduler instance bound to JNDI is not Serializable, so
37  * you will get a null reference back if you try to retrieve it from outside
38  * the JBoss server in which it was bound. If you have a need for remote
39  * access to a Scheduler instance you may want to consider using Quartz's RMI
40  * support instead.
41  * </p>
42  *
43  * @see org.quartz.ee.jmx.jboss.QuartzService
44  *
45  * @author Andrew Collins
46  */

47 public interface QuartzServiceMBean extends ServiceMBean {
48
49     /*
50      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51      *
52      * Interface.
53      *
54      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55      */

56
57     void setJndiName(String JavaDoc jndiName) throws Exception JavaDoc;
58
59     String JavaDoc getJndiName();
60
61     void setProperties(String JavaDoc properties);
62
63     void setPropertiesFile(String JavaDoc propertiesFile);
64     
65     void setStartScheduler(boolean startScheduler);
66 }
67
Popular Tags