org.quartz.ee.jmx.jboss
Class QuartzService
java.lang.Object
ServiceMBeanSupport
org.quartz.ee.jmx.jboss.QuartzService
- All Implemented Interfaces:
- QuartzServiceMBean
public class QuartzService
- extends ServiceMBeanSupport
- implements QuartzServiceMBean
JBoss specific MBean implementation for configuring, starting, and
binding to JNDI a Quartz Scheduler instance.
Sample MBean deployment descriptor:
quartz-service.xml
Note: The Scheduler instance bound to JNDI is not Serializable, so
you will get a null reference back if you try to retrieve it from outside
the JBoss server in which it was bound. If you have a need for remote
access to a Scheduler instance you may want to consider using Quartz's RMI
support instead.
- Author:
- Andrew Collins
- See Also:
QuartzServiceMBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuartzService
public QuartzService()
setJndiName
public void setJndiName(String jndiName)
throws Exception
- Specified by:
setJndiName
in interface QuartzServiceMBean
- Throws:
Exception
getJndiName
public String getJndiName()
- Specified by:
getJndiName
in interface QuartzServiceMBean
getName
public String getName()
setProperties
public void setProperties(String properties)
- Specified by:
setProperties
in interface QuartzServiceMBean
getProperties
public String getProperties()
setPropertiesFile
public void setPropertiesFile(String propertiesFile)
- Specified by:
setPropertiesFile
in interface QuartzServiceMBean
getPropertiesFile
public String getPropertiesFile()
setStartScheduler
public void setStartScheduler(boolean startScheduler)
- Specified by:
setStartScheduler
in interface QuartzServiceMBean
getStartScheduler
public boolean getStartScheduler()
createService
public void createService()
throws Exception
- Throws:
Exception
destroyService
public void destroyService()
throws Exception
- Throws:
Exception
startService
public void startService()
throws Exception
- Throws:
Exception
stopService
public void stopService()
throws Exception
- Throws:
Exception
Copyright 2001-2019, Terracotta, Inc.