Enum ScraperState

    • Enum Constant Detail

      • READY

        public static final ScraperState READY
        Scraper is ready to use.
      • RUNNING

        public static final ScraperState RUNNING
        Scraper is running.
      • PAUSED

        public static final ScraperState PAUSED
        Scraper has been paused.
      • FINISHED

        public static final ScraperState FINISHED
        Scraper has successfully finished its work.
      • STOPPED

        public static final ScraperState STOPPED
        Scraper has been stopped by the user.
      • ERROR

        public static final ScraperState ERROR
        Scraper has finished its work with error.
      • EXIT

        public static final ScraperState EXIT
        Scraper's execution has been stopped by exit command.
    • Method Detail

      • values

        public static ScraperState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ScraperState c : ScraperState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ScraperState valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null