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.model.aggregation
Class RefererTreeAggregation

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
          extended by org.torweg.pulse.component.statistics.model.aggregation.AbstractTreeAggregation<RefererTreeElement>
              extended by org.torweg.pulse.component.statistics.model.aggregation.RefererTreeAggregation
All Implemented Interfaces:
java.io.Serializable, IHasDuration

@Entity
public class RefererTreeAggregation
extends AbstractTreeAggregation<RefererTreeElement>

The actual implementation of AbstractTreeAggregation used for storing the aggregated statistical data of the "referer analysis" of the statistics component - on a "per Visit" basis for the set Duration.

Version:
$Revision: 1579 $
Author:
Daniel Dietz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
AbstractAggregation.Hour
 
Field Summary
 
Fields inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
LOGGER
 
Constructor Summary
protected RefererTreeAggregation()
          Deprecated. 
  RefererTreeAggregation(RefererTreeElement p, Duration duration)
          Creates a new PathTreeAggregation for the given RefererTreeElement.
 
Method Summary
 boolean aggregate(Visit visit, org.hibernate.Session s)
          Aggregates the given Visit.
 boolean isAggregateable(Visit visit)
          Test if the given Visit is aggregate-able by this AbstractAggregation.
 
Methods inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractTreeAggregation
getHits, getPath, increaseHits, increaseHits, setPath, toString
 
Methods inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
getDataResolution, getDuration, getEndMillis, getStartMillis, getStatisticsServer, setDuration, setEndMillis, setStartMillis, setStatisticsServer
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RefererTreeAggregation

@Deprecated
protected RefererTreeAggregation()
Deprecated. 

Default constructor for hibernateTM.


RefererTreeAggregation

public RefererTreeAggregation(RefererTreeElement p, Duration duration)
                       throws java.lang.NullPointerException
Creates a new PathTreeAggregation for the given RefererTreeElement.

Parameters:
p - the RefererTreeElement
duration - the Duration
Throws:
java.lang.NullPointerException - if the given path or dur is null
Method Detail

isAggregateable

public final boolean isAggregateable(Visit visit)
Test if the given Visit is aggregate-able by this AbstractAggregation.

Specified by:
isAggregateable in class AbstractAggregation
Parameters:
visit - the Visit
Returns:
true if and only if this AbstractAggregation can process the given Visit, false otherwise
See Also:
#isAggregateable(org.torweg.pulse.component.statistics.model.Visit)

aggregate

public final boolean aggregate(Visit visit,
                               org.hibernate.Session s)
Aggregates the given Visit.

Specified by:
aggregate in class AbstractAggregation
Parameters:
visit - the Visit
s - the HibernateTMSession
Returns:
true if and only if the Visit has been processed, false otherwise
See Also:
#aggregate(org.torweg.pulse.component.statistics.model.Visit, org.hibernate.Session)