Enum StatusReport.ReportFrequency

  • All Implemented Interfaces:
    Serializable, Comparable<StatusReport.ReportFrequency>
    Enclosing class:
    StatusReport

    public static enum StatusReport.ReportFrequency
    extends Enum<StatusReport.ReportFrequency>
    Enumerates the allowed status report frequencies:
    1. FIVE_MINUTE: generate a report every five minutes on the five minute.
    2. TEN_MINUTE: generate a report every ten minutes on the ten minute;
    3. FIFTEEN_MINUTE: generate a report every fifteen minutes on the quarter hour.
    4. TWENTY_MINUTE: generate a report every twenty minutes on the twenty minute.
    5. THIRTY_MINUTE: generate a report every thirty minutes on the half hour.
    6. HOURLY: generate a report every hour on the hour.
    • Method Detail

      • values

        public static StatusReport.ReportFrequency[] 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 (StatusReport.ReportFrequency c : StatusReport.ReportFrequency.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StatusReport.ReportFrequency 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
      • getFrequency

        public long getFrequency()
        Returns the report frequency in milliseconds.
        Returns:
        the report frequency in milliseconds.