-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Describe EJB timer usage for developers.
- Loading branch information
1 parent
4607549
commit 3e4a849
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ Developer Guide | |
geospatial | ||
selinux | ||
big-data-support | ||
timers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
========== | ||
EJB Timers | ||
========== | ||
|
||
As described in :doc:`../admin/timers`, Dataverse uses EJB timers for scheduled jobs. This section is about the | ||
techniques used for scheduling. | ||
|
||
* :doc:`../admin/metadataexport` is done via ``@Schedule`` annotation on ``OAISetServiceBean.exportAllSets()`` and | ||
``DatasetServiceBean.exportAll()``. Fixed to 2AM local time every day, non persistent. | ||
* Harvesting is a bit more complicated. The timer is attached to ``HarvesterServiceBean.harvestEnabled()`` via | ||
``@Schedule`` annotation every hour at minute 50, non-persistent. | ||
That method collects all enabled ``HarvestingClient`` and runs them. | ||
|
||
.. contents:: |toctitle| | ||
:local: | ||
|
||
---- | ||
|
||
Previous: :doc:`big-data-support` |