Package org.quartz.ee.jmx.jboss
Class JBoss4RMIRemoteMBeanScheduler
- java.lang.Object
-
- org.quartz.impl.RemoteMBeanScheduler
-
- org.quartz.ee.jmx.jboss.JBoss4RMIRemoteMBeanScheduler
-
- All Implemented Interfaces:
Scheduler
public class JBoss4RMIRemoteMBeanScheduler extends RemoteMBeanScheduler
An implementation of the
Schedulerinterface that remotely proxies all method calls to the equivalent call on a givenQuartzSchedulerinstance, via JBoss's JMX RMIAdaptor.Set the providerURL property to your MBean server URL. This defaults to: jnp://localhost:1099
- See Also:
Scheduler,QuartzScheduler
-
-
Field Summary
-
Fields inherited from interface org.quartz.Scheduler
DEFAULT_FAIL_OVER_GROUP, DEFAULT_GROUP, DEFAULT_RECOVERY_GROUP, FAILED_JOB_ORIGINAL_TRIGGER_FIRETIME_IN_MILLISECONDS, FAILED_JOB_ORIGINAL_TRIGGER_GROUP, FAILED_JOB_ORIGINAL_TRIGGER_NAME, FAILED_JOB_ORIGINAL_TRIGGER_SCHEDULED_FIRETIME_IN_MILLISECONDS
-
-
Constructor Summary
Constructors Constructor Description JBoss4RMIRemoteMBeanScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectgetAttribute(java.lang.String attribute)Get the given attribute of the remote Scheduler MBean.protected javax.management.AttributeListgetAttributes(java.lang.String[] attributes)Get the given attributes of the remote Scheduler MBean.protected java.util.PropertiesgetContextProperties()Get the properties to use when creating a JNDI InitialContext.voidinitialize()Initialize this remote MBean scheduler, getting the JBoss RMIAdaptor for communication.protected java.lang.Objectinvoke(java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature)Invoke the given operation on the remote Scheduler MBean.voidsetProviderURL(java.lang.String providerURL)Set the remote MBean server URL.-
Methods inherited from class org.quartz.impl.RemoteMBeanScheduler
addCalendar, addJob, addJob, checkExists, checkExists, clear, deleteCalendar, deleteJob, deleteJobs, getCalendar, getCalendarNames, getContext, getCurrentlyExecutingJobs, getJobDetail, getJobGroupNames, getJobKeys, getListenerManager, getMetaData, getPausedTriggerGroups, getSchedulerInstanceId, getSchedulerName, getSchedulerObjectName, getTrigger, getTriggerGroupNames, getTriggerKeys, getTriggersOfJob, getTriggerState, interrupt, interrupt, isInStandbyMode, isShutdown, isStarted, pauseAll, pauseJob, pauseJobs, pauseTrigger, pauseTriggers, rescheduleJob, resetTriggerFromErrorState, resumeAll, resumeJob, resumeJobs, resumeTrigger, resumeTriggers, scheduleJob, scheduleJob, scheduleJob, scheduleJobs, setJobFactory, setSchedulerObjectName, setSchedulerObjectName, shutdown, shutdown, standby, start, startDelayed, triggerJob, triggerJob, unscheduleJob, unscheduleJobs
-
-
-
-
Constructor Detail
-
JBoss4RMIRemoteMBeanScheduler
public JBoss4RMIRemoteMBeanScheduler() throws SchedulerException- Throws:
SchedulerException
-
-
Method Detail
-
setProviderURL
public void setProviderURL(java.lang.String providerURL)
Set the remote MBean server URL. Defaults to: jnp://localhost:1099
-
initialize
public void initialize() throws SchedulerExceptionInitialize this remote MBean scheduler, getting the JBoss RMIAdaptor for communication.- Specified by:
initializein classRemoteMBeanScheduler- Throws:
SchedulerException
-
getContextProperties
protected java.util.Properties getContextProperties()
Get the properties to use when creating a JNDI InitialContext.This method is broken out so it can be extended to pass credentials or other properties not currently supported.
-
getAttribute
protected java.lang.Object getAttribute(java.lang.String attribute) throws SchedulerExceptionDescription copied from class:RemoteMBeanSchedulerGet the given attribute of the remote Scheduler MBean.- Specified by:
getAttributein classRemoteMBeanScheduler- Throws:
SchedulerException
-
getAttributes
protected javax.management.AttributeList getAttributes(java.lang.String[] attributes) throws SchedulerExceptionDescription copied from class:RemoteMBeanSchedulerGet the given attributes of the remote Scheduler MBean.- Specified by:
getAttributesin classRemoteMBeanScheduler- Throws:
SchedulerException
-
invoke
protected java.lang.Object invoke(java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature) throws SchedulerExceptionDescription copied from class:RemoteMBeanSchedulerInvoke the given operation on the remote Scheduler MBean.- Specified by:
invokein classRemoteMBeanScheduler- Throws:
SchedulerException
-
-