Package org.graylog2.periodical
Class Periodicals
java.lang.Object
org.graylog2.periodical.Periodicals
- Author:
- Lennart Koopmann <[email protected]>
-
Constructor Summary
ConstructorDescriptionPeriodicals
(ScheduledExecutorService scheduler, ScheduledExecutorService daemonScheduler) -
Method Summary
Modifier and TypeMethodDescriptiongetAll()
All periodicals which are currently running, i.e.void
registerAndStart
(Periodical periodical) void
unregisterAndStop
(Periodical periodical)
-
Constructor Details
-
Periodicals
-
-
Method Details
-
registerAndStart
-
unregisterAndStop
-
getAll
- Returns:
- a copy of the list of all registered periodicals.
-
getAllStoppedOnGracefulShutdown
- Returns:
- a copy of the list of all registered periodicals that are configured to be stopped on a graceful shutdown.
-
getAllRunning
All periodicals which are currently running, i.e. they have been scheduled for periodic execution and ar not just one-off periodicals. -
getFutures
- Returns:
- a copy of the map of all executor futures
-