TorqueBox 3.1.2

org.torquebox.jobs
Class ScheduledJob

java.lang.Object
  extended by org.projectodd.polyglot.jobs.BaseJob
      extended by org.projectodd.polyglot.jobs.BaseScheduledJob
          extended by org.torquebox.jobs.ScheduledJob
All Implemented Interfaces:
org.jboss.msc.service.Service<org.projectodd.polyglot.jobs.BaseJob>, org.jboss.msc.value.Value<org.projectodd.polyglot.jobs.BaseJob>, org.projectodd.polyglot.core.StartState, org.projectodd.polyglot.jobs.BaseJobMBean, org.projectodd.polyglot.jobs.BaseScheduledJobMBean, ScheduledJobMBean

public class ScheduledJob
extends org.projectodd.polyglot.jobs.BaseScheduledJob
implements ScheduledJobMBean


Field Summary
static String RUNTIME_POOL_KEY
           
 
Fields inherited from interface org.jboss.msc.service.Service
NULL, NULL_VALUE
 
Constructor Summary
ScheduledJob(String group, String name, String description, String cronExpression, org.projectodd.polyglot.core.util.TimeInterval timeout, boolean singleton, boolean stopped, String rubyClassName)
           
 
Method Summary
protected  void _start()
           
 org.jboss.msc.inject.Injector<ComponentResolver> getComponentResolverInjector()
           
 String getRubyClassName()
          Retrieve the ruby class name.
 org.jboss.msc.inject.Injector<RubyRuntimePool> getRubyRuntimePoolInjector()
           
protected  void waitForMSCServiceToStart()
          Ensure this ScheduledJob's MSC service has started (signalled by the presence of all injected values) before returning
 
Methods inherited from class org.projectodd.polyglot.jobs.BaseScheduledJob
getCronExpression, reschedule, reschedule, reschedule, setCronExpression
 
Methods inherited from class org.projectodd.polyglot.jobs.BaseJob
baseTrigger, buildJobDetail, getDescription, getGroup, getJobSchedulerInjector, getKey, getName, getScheduler, getStatus, getTimeout, getTriggerName, getValue, hasStartedAtLeastOnce, isDead, isSingleton, isStarted, isStoppedAfterDeploy, kill, restart, setTimeout, setTimeout, start, start, stop, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.projectodd.polyglot.jobs.BaseScheduledJobMBean
getCronExpression, reschedule, reschedule, reschedule
 
Methods inherited from interface org.projectodd.polyglot.jobs.BaseJobMBean
getStatus, getTimeout, isStarted, restart, start, stop
 

Field Detail

RUNTIME_POOL_KEY

public static final String RUNTIME_POOL_KEY
See Also:
Constant Field Values
Constructor Detail

ScheduledJob

public ScheduledJob(String group,
                    String name,
                    String description,
                    String cronExpression,
                    org.projectodd.polyglot.core.util.TimeInterval timeout,
                    boolean singleton,
                    boolean stopped,
                    String rubyClassName)
Method Detail

_start

protected void _start()
               throws ParseException,
                      org.quartz.SchedulerException
Overrides:
_start in class org.projectodd.polyglot.jobs.BaseScheduledJob
Throws:
ParseException
org.quartz.SchedulerException

waitForMSCServiceToStart

protected void waitForMSCServiceToStart()
Ensure this ScheduledJob's MSC service has started (signalled by the presence of all injected values) before returning


getRubyClassName

public String getRubyClassName()
Description copied from interface: ScheduledJobMBean
Retrieve the ruby class name.

Specified by:
getRubyClassName in interface ScheduledJobMBean

getComponentResolverInjector

public org.jboss.msc.inject.Injector<ComponentResolver> getComponentResolverInjector()

getRubyRuntimePoolInjector

public org.jboss.msc.inject.Injector<RubyRuntimePool> getRubyRuntimePoolInjector()

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.