public class QuartzService extends org.jboss.system.ServiceMBeanSupport implements QuartzServiceMBean
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.
QuartzServiceMBean| Constructor and Description |
|---|
QuartzService() |
| Modifier and Type | Method and Description |
|---|---|
void |
createService() |
void |
destroyService() |
java.lang.String |
getJndiName() |
java.lang.String |
getName() |
java.lang.String |
getProperties() |
java.lang.String |
getPropertiesFile() |
boolean |
getStartScheduler() |
void |
setJndiName(java.lang.String jndiName) |
void |
setProperties(java.lang.String properties) |
void |
setPropertiesFile(java.lang.String propertiesFile) |
void |
setStartScheduler(boolean startScheduler) |
void |
startService() |
void |
stopService() |
create, destroy, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stopaddNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotificationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void setJndiName(java.lang.String jndiName)
throws java.lang.Exception
setJndiName in interface QuartzServiceMBeanjava.lang.Exceptionpublic java.lang.String getJndiName()
getJndiName in interface QuartzServiceMBeanpublic java.lang.String getName()
getName in interface org.jboss.system.ServiceMBeangetName in class org.jboss.system.ServiceMBeanSupportpublic void setProperties(java.lang.String properties)
setProperties in interface QuartzServiceMBeanpublic java.lang.String getProperties()
public void setPropertiesFile(java.lang.String propertiesFile)
setPropertiesFile in interface QuartzServiceMBeanpublic java.lang.String getPropertiesFile()
public void setStartScheduler(boolean startScheduler)
setStartScheduler in interface QuartzServiceMBeanpublic boolean getStartScheduler()
public void createService()
throws java.lang.Exception
createService in class org.jboss.system.ServiceMBeanSupportjava.lang.Exceptionpublic void destroyService()
throws java.lang.Exception
destroyService in class org.jboss.system.ServiceMBeanSupportjava.lang.Exceptionpublic void startService()
throws java.lang.Exception
startService in class org.jboss.system.ServiceMBeanSupportjava.lang.Exceptionpublic void stopService()
throws java.lang.Exception
stopService in class org.jboss.system.ServiceMBeanSupportjava.lang.ExceptionCopyright IBM Corp. 2024, 2025