org.quartz.ee.jmx.jboss
Class QuartzService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.quartz.ee.jmx.jboss.QuartzService
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, QuartzServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class QuartzService
extends org.jboss.system.ServiceMBeanSupport
implements QuartzServiceMBean

See org/quartz/ee/jmx/jboss/doc-files/quartz-service.xml for an example service mbean deployment descriptor.

Author:
Andrew Collins

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
QuartzService()
           
 
Method Summary
 void createService()
           
 void destroyService()
           
 java.lang.String getJndiName()
           
 java.lang.String getName()
           
 java.lang.String getProperties()
           
 java.lang.String getPropertiesFile()
           
 void setJndiName(java.lang.String jndiName)
           
 void setProperties(java.lang.String properties)
           
 void setPropertiesFile(java.lang.String propertiesFile)
           
 void startService()
           
 void stopService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

QuartzService

public QuartzService()
Method Detail

setJndiName

public void setJndiName(java.lang.String jndiName)
                 throws java.lang.Exception
Specified by:
setJndiName in interface QuartzServiceMBean
Throws:
java.lang.Exception

getJndiName

public java.lang.String getJndiName()
Specified by:
getJndiName in interface QuartzServiceMBean

getName

public java.lang.String getName()
Specified by:
getName in interface org.jboss.system.ServiceMBean

setProperties

public void setProperties(java.lang.String properties)
Specified by:
setProperties in interface QuartzServiceMBean

getProperties

public java.lang.String getProperties()

setPropertiesFile

public void setPropertiesFile(java.lang.String propertiesFile)
Specified by:
setPropertiesFile in interface QuartzServiceMBean

getPropertiesFile

public java.lang.String getPropertiesFile()

createService

public void createService()
                   throws java.lang.Exception
Throws:
java.lang.Exception

destroyService

public void destroyService()
                    throws java.lang.Exception
Throws:
java.lang.Exception

startService

public void startService()
                  throws java.lang.Exception
Throws:
java.lang.Exception

stopService

public void stopService()
                 throws java.lang.Exception
Throws:
java.lang.Exception

Quartz Project Page