net.java.dev.moskito.core.stats.impl
Class IntervalNameParser

java.lang.Object
  extended by net.java.dev.moskito.core.stats.impl.IntervalNameParser

 class IntervalNameParser
extends Object

This utility class provides functionality to parse Interval names.

Author:
miros

Field Summary
private static int DAY
          The length of a day in seconds
private static int HOUR
          The length of an hour in seconds
private static int MINUTE
          The length of a minute in seconds
private static int SECOND
          The length of a second in seconds
 
Constructor Summary
IntervalNameParser()
           
 
Method Summary
(package private) static int guessLengthFromName(String aName)
          This method parses the given Interval name and returns the length of such an Interval in seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECOND

private static final int SECOND
The length of a second in seconds

See Also:
Constant Field Values

MINUTE

private static final int MINUTE
The length of a minute in seconds

See Also:
Constant Field Values

HOUR

private static final int HOUR
The length of an hour in seconds

See Also:
Constant Field Values

DAY

private static final int DAY
The length of a day in seconds

See Also:
Constant Field Values
Constructor Detail

IntervalNameParser

IntervalNameParser()
Method Detail

guessLengthFromName

static final int guessLengthFromName(String aName)
This method parses the given Interval name and returns the length of such an Interval in seconds.

Parameters:
aName - the name of the Interval
Returns:
the appropriate length
Throws:
UnknownIntervalLengthException - if the name could not be parsed


Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework