Class Scheduler

    • Field Detail

      • schedulerClassParamName

        public static final String schedulerClassParamName
        Class to use for Scheduler. Must extend the class Scheduler.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Scheduler

        public Scheduler()
    • Method Detail

      • init

        protected abstract void init​(Map<String,​Object> stormConf)
        Configuration of the scheduler based on the config. Should be called by Scheduler.getInstance() *
      • schedule

        public abstract Optional<Date> schedule​(Status status,
                                                Metadata metadata)
        Returns an optional Date indicating when the document should be refetched next, based on its status. It is empty if the URL should never be refetched.
      • getInstance

        public static Scheduler getInstance​(Map<String,​Object> stormConf)
        Returns a Scheduler instance based on the configuration *