Platform Explorer / Nuxeo Platform 11.3

Component org.nuxeo.ecm.core.scheduler.SchedulerService


Core scheduler registry service.


Resolution Order

The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Start Order

The start order represents the order in which this component has been started by the Nuxeo Runtime framework.
This number is interesting to tweak if your Java component interacts with other components, and needs to be started before or after another one.
It can be changed by implementing the method "Component#getApplicationStartedOrder()" on your Java component: components are sorted according to this reference value, in increasing order.
The default value is 1000, and the repository initialization uses number 100. Negative values can also be used.


Class: org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl


Extension Points

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.core.scheduler.SchedulerService">


     Core scheduler registry service.

    <provide interface="org.nuxeo.ecm.core.scheduler.SchedulerService" />

  <implementation class="org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl" />

  <extension-point name="schedule">

      Extension allowing the registration of schedules.
      This is similar to a cron job sending events. Note that
      contrary to UNIX cron there is an additional "seconds" field
      in the cron expression.
      A scheduler definition contains information about what event is sent,
      when, and under what identity.
      For instance :
        <schedule id="mySchedule" jobFactoryClass="org.nuxeo.ecm.core.scheduler.DefaultEventJobFactory">
          <!-- Every first of the month at 3am -->
          <cronExpression>0 0 3 1 * ?</cronExpression>
      jobFactoryClass is optional and defaults to org.nuxeo.ecm.core.scheduler.DefaultEventJobFactory.
      timezone is optional and defaults to system default.

      @see org.quartz.CronTrigger
      @see org.nuxeo.ecm.core.scheduler.EventJobFactory

    <object class="org.nuxeo.ecm.core.scheduler.ScheduleImpl"/>