net.logAnalyzer.analysis
Class LAPeriodicAnalyzer

java.lang.Object
  extended bynet.logAnalyzer.analysis.LAAnalyzer
      extended bynet.logAnalyzer.analysis.LAPeriodicAnalyzer

public abstract class LAPeriodicAnalyzer
extends LAAnalyzer

This class defines a template for log analyzers with a date key. A log analyzer analysis a messageLabel and generate an LAAnalysis. a period is used to normalize keys dates.

Version:
0.1
Author:
Karim REFEYTON

Constructor Summary
LAPeriodicAnalyzer(AnalyzerDefinition definition, LATimePeriod period)
          Construct a new analyzer from an analyzer definition.
 
Method Summary
 LATimePeriod getPeriod()
          Return the time period used to normalize the keys.
 java.util.Date normalizeDate(java.util.Date date)
          Normalize a date using the period.
 java.lang.String normalizeToString(java.util.Date date)
          Normalize a date using the period..
 
Methods inherited from class net.logAnalyzer.analysis.LAAnalyzer
analyze, analyzeMessage, canAnalyze, getAnalysis, getDateFormat, getLabel, getName, getPercentFormat, init, initAnalyze, release, releaseAnalyze, setAnalysis, skipMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LAPeriodicAnalyzer

public LAPeriodicAnalyzer(AnalyzerDefinition definition,
                          LATimePeriod period)
Construct a new analyzer from an analyzer definition.

Parameters:
definition - Definition of the analyzer.
period - Time period.
Method Detail

getPeriod

public final LATimePeriod getPeriod()
Return the time period used to normalize the keys.

Returns:
Time period.

normalizeDate

public final java.util.Date normalizeDate(java.util.Date date)
Normalize a date using the period.

Parameters:
date - Date to normalize.
Returns:
Normalized date in date format.

normalizeToString

public final java.lang.String normalizeToString(java.util.Date date)
Normalize a date using the period..

Parameters:
date - Date to normalize.
Returns:
Normalized date in string format.


Copyright © 2006 null. All Rights Reserved.