dk.netarkivet.harvester.harvesting.monitor
Enum StartedJobHistoryChartGen.TimeAxisResolution

java.lang.Object
  extended by java.lang.Enum<StartedJobHistoryChartGen.TimeAxisResolution>
      extended by dk.netarkivet.harvester.harvesting.monitor.StartedJobHistoryChartGen.TimeAxisResolution
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StartedJobHistoryChartGen.TimeAxisResolution>
Enclosing class:
StartedJobHistoryChartGen

protected static enum StartedJobHistoryChartGen.TimeAxisResolution
extends java.lang.Enum<StartedJobHistoryChartGen.TimeAxisResolution>

Time units used to scale the crawl time values and generate the chart's time axis ticks.


Enum Constant Summary
day
          One day.
half_day
          Twelve hours.
hour
          One hour.
minute
          One minute.
second
          One second.
week
          One week.
 
Method Summary
(package private) static StartedJobHistoryChartGen.TimeAxisResolution findTimeUnit(double seconds)
           
(package private)  double[] scale(double[] timeInSeconds)
           
static StartedJobHistoryChartGen.TimeAxisResolution valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StartedJobHistoryChartGen.TimeAxisResolution[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

second

public static final StartedJobHistoryChartGen.TimeAxisResolution second
One second. Tick step is 10s.


minute

public static final StartedJobHistoryChartGen.TimeAxisResolution minute
One minute. Tick step is 5m.


hour

public static final StartedJobHistoryChartGen.TimeAxisResolution hour
One hour. Tick step is 1h.


half_day

public static final StartedJobHistoryChartGen.TimeAxisResolution half_day
Twelve hours. Tick step is 2h.


day

public static final StartedJobHistoryChartGen.TimeAxisResolution day
One day. Tick step is 0.5d.


week

public static final StartedJobHistoryChartGen.TimeAxisResolution week
One week. Tick step is 1w.

Method Detail

values

public static StartedJobHistoryChartGen.TimeAxisResolution[] 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 (StartedJobHistoryChartGen.TimeAxisResolution c : StartedJobHistoryChartGen.TimeAxisResolution.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StartedJobHistoryChartGen.TimeAxisResolution valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

scale

double[] scale(double[] timeInSeconds)

findTimeUnit

static StartedJobHistoryChartGen.TimeAxisResolution findTimeUnit(double seconds)