pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics.aggregator
Class PathTreeAggregator.TreeAggregationUtil

java.lang.Object
  extended by org.torweg.pulse.component.statistics.aggregator.PathTreeAggregator.TreeAggregationUtil
Enclosing class:
PathTreeAggregator

protected static final class PathTreeAggregator.TreeAggregationUtil
extends java.lang.Object

Tree used for intermediate storage of aggregated values during aggregation of PIRecords.

This tree is not being stored but only used during during the process of aggregation itself.

Version:
$Revision: 1567 $
Author:
Daniel Dietz

Nested Class Summary
protected static class PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode
          An AggregationTreeNode represents a node in the TreeAggregationUtil.
 
Constructor Summary
PathTreeAggregator.TreeAggregationUtil(java.util.Set<PathTreeAggregation> rootAggregations, java.lang.String regex, StatisticsServer server)
          Creates a new TreeAggregationUtil with the given Duration and root-PathTreeElement.
 
Method Summary
protected  boolean aggregate(PIRecord record, org.torweg.pulse.component.statistics.aggregator.PathTreeAggregator.Booleans booleans, org.hibernate.Session s)
          Aggregates the given PIRecord.
 java.util.Set<PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode> getRootNodes()
          Returns the root-AggregationTreeNodes of the TreeAggregationUtil.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathTreeAggregator.TreeAggregationUtil

public PathTreeAggregator.TreeAggregationUtil(java.util.Set<PathTreeAggregation> rootAggregations,
                                              java.lang.String regex, StatisticsServer server)
Creates a new TreeAggregationUtil with the given Duration and root-PathTreeElement.

Parameters:
rootAggregations - the PathTreeAggregations the TreeAggregationUtil operates on
regex - the separator regex
server - the StatisticsServer
Throws:
java.lang.NullPointerException - if the given StatisticsServer is null
Method Detail

getRootNodes

public java.util.Set<PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode> getRootNodes()
Returns the root-AggregationTreeNodes of the TreeAggregationUtil.

Returns:
the root-AggregationTreeNodes

aggregate

protected boolean aggregate(PIRecord record,
                            org.torweg.pulse.component.statistics.aggregator.PathTreeAggregator.Booleans booleans,
                            org.hibernate.Session s)
Aggregates the given PIRecord.

Parameters:
record - the PIRecord
booleans - a PathTreeAggregator.Booleans with the boolean-values required for setting bounce/entry/leave-count
s - the HibernateTM-Session required during aggregation
Returns:
true if and only if the given PIRecord has been aggregated, false otherwise