Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The same job can be assigned to more than one Scheduled Task.

Implementation

Syncope < 1.1.0

Quartz 1.8.X is used.

A scheduled task job is a Java implementation of org.quartz.StatefulJob interface.

In order to simplify the implementation, the abstract Java class AbstractJob has been provided. AbstractJob implements StatefulJob interface taking care by default of all the things about task information update.

This is the reason why it is strongly recommended to implement scheduled task jobs by extending AbstractJob.

A sample job has been provided below.

...

and also takes care of all necessary settings.

Take a look at sample job class.

Syncope >= 1.1.0

Quartz 2.1.X is used.

A scheduled task job is a Java implementation of org.quartz.Job interface.

In order to simplify the implementation, the abstract Java class AbstractJob has been provided. AbstractJob implements StatefulJob, is annotated with @DisallowConcurrentExecution and also takes care of all necessary settings.

Take a look at sample job class.

Deploy

A job class can be deployed:

...