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 OperatingSystemPerVisitAggregation

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.AbstractRegexVersionedCounterAggregation<OperatingSystem,OperatingSystemVersionCounter>
              extended by org.torweg.pulse.component.statistics.model.aggregation.OperatingSystemPerVisitAggregation
All Implemented Interfaces:
java.io.Serializable, ICount, IHasDuration

@Entity
public class OperatingSystemPerVisitAggregation
extends AbstractRegexVersionedCounterAggregation<OperatingSystem,OperatingSystemVersionCounter>

The actual implementation of AbstractRegexVersionedCounterAggregation which stores the aggregated statistical data about OperatingSystems 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 OperatingSystemPerVisitAggregation()
          Deprecated. 
  OperatingSystemPerVisitAggregation(OperatingSystem operatingSystem, StatisticsServer server, Duration duration)
          Creates a new OperatingSystemPerVisitAggregation with the given OperatingSystem, the given StatisticsServer and the given Duration.
 
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 OperatingSystemPerVisitAggregation.
 
Methods inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractRegexVersionedCounterAggregation
getCount, getCounted, getUnknownVersionTotal, getVersionCounters, increase, setCount, setCounted, 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

OperatingSystemPerVisitAggregation

@Deprecated
protected OperatingSystemPerVisitAggregation()
Deprecated. 

Default constructor for hibernateTM.


OperatingSystemPerVisitAggregation

public OperatingSystemPerVisitAggregation(OperatingSystem operatingSystem, StatisticsServer server, Duration duration)
Creates a new OperatingSystemPerVisitAggregation with the given OperatingSystem, the given StatisticsServer and the given Duration.

Parameters:
operatingSystem - the OperatingSystem
server - the StatisticsServer
duration - the Duration
Method Detail

isAggregateable

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

Specified by:
isAggregateable in class AbstractAggregation
Parameters:
visit - the Visit
Returns:
true if and only if this AbstractRegexVersionedCounterAggregation 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 - Visit
s - the Session UNUSED
Returns:
true if and only if the Visit has been processed, false otherwise
See Also:
#aggregate(org.torweg.pulse.component.statistics.model.Visit)