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 OperatingSystemPerVisitAggregator

java.lang.Object
  extended by org.torweg.pulse.component.statistics.aggregator.AbstractBaseAggregator
      extended by org.torweg.pulse.component.statistics.aggregator.AbstractRegexVersionedPerVisitAggregator<OperatingSystem,OperatingSystemPerVisitAggregation>
          extended by org.torweg.pulse.component.statistics.aggregator.OperatingSystemPerVisitAggregator

public final class OperatingSystemPerVisitAggregator
extends AbstractRegexVersionedPerVisitAggregator<OperatingSystem,OperatingSystemPerVisitAggregation>

Aggregates information about the OperatingSystem.

Version:
$Revision: 1541 $
Author:
Daniel Dietz

Constructor Summary
OperatingSystemPerVisitAggregator()
           
 
Method Summary
protected  OperatingSystemPerVisitAggregation getAbstractRegexVersionedCounterAggregation(OperatingSystem operatingSystem, Visit visit, Duration fullDay, org.hibernate.Session s)
          Tries to load a matching OperatingSystemPerVisitAggregation for the given OperatingSystem, the given Visit and the given Duration.
protected  java.lang.String getCheckValue(Visit visit)
          Returns the "user-agent-string" from the given Visit.
protected  java.util.List<OperatingSystem> getKnownAbstractRegexVersioneds(org.hibernate.Session s)
          Returns all the known OperatingSystems.
protected  OperatingSystemPerVisitAggregation getNewAbstractRegexVersionedCounterAggregation(OperatingSystem operatingSystem, Visit visit, Duration fullDay)
          Returns a new OperatingSystemPerVisitAggregation for the given OperatingSystem, the given Visit and the given Duration.
protected  OperatingSystem getUnknownAbstractRegexVersioned(org.hibernate.Session s)
          Returns the OperatingSystem which represents the "unknown".
 
Methods inherited from class org.torweg.pulse.component.statistics.aggregator.AbstractRegexVersionedPerVisitAggregator
aggregate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperatingSystemPerVisitAggregator

public OperatingSystemPerVisitAggregator()
Method Detail

getKnownAbstractRegexVersioneds

protected java.util.List<OperatingSystem> getKnownAbstractRegexVersioneds(org.hibernate.Session s)
Returns all the known OperatingSystems.

Specified by:
getKnownAbstractRegexVersioneds in class AbstractRegexVersionedPerVisitAggregator<OperatingSystem,OperatingSystemPerVisitAggregation>
Parameters:
s - the current HibernateTM-Session
Returns:
List&lt;OperatingSystem&gt;
See Also:
#getKnownAbstractVersioneds()

getCheckValue

protected java.lang.String getCheckValue(Visit visit)
Returns the "user-agent-string" from the given Visit.

Specified by:
getCheckValue in class AbstractRegexVersionedPerVisitAggregator<OperatingSystem,OperatingSystemPerVisitAggregation>
Parameters:
visit - the Visit
Returns:
the "user-agent-string" to be checked

getUnknownAbstractRegexVersioned

protected OperatingSystem getUnknownAbstractRegexVersioned(org.hibernate.Session s)
Returns the OperatingSystem which represents the "unknown".

Specified by:
getUnknownAbstractRegexVersioned in class AbstractRegexVersionedPerVisitAggregator<OperatingSystem,OperatingSystemPerVisitAggregation>
Parameters:
s - the current HibernateTM-Session
Returns:
the OperatingSystem which represents the "unknown"
See Also:
#getUnknownAbstractVersioned()

getAbstractRegexVersionedCounterAggregation

protected OperatingSystemPerVisitAggregation getAbstractRegexVersionedCounterAggregation(OperatingSystem operatingSystem, Visit visit, Duration fullDay,
                                                                                         org.hibernate.Session s)
Tries to load a matching OperatingSystemPerVisitAggregation for the given OperatingSystem, the given Visit and the given Duration.

Specified by:
getAbstractRegexVersionedCounterAggregation in class AbstractRegexVersionedPerVisitAggregator<OperatingSystem,OperatingSystemPerVisitAggregation>
Parameters:
operatingSystem - the OperatingSystem
visit - the Visit
fullDay - the Duration
s - the current HibernateTM-Session
Returns:
a matching OperatingSystemPerVisitAggregation if available, null otherwise
See Also:
#getAbstractVersionCounterAggregation()

getNewAbstractRegexVersionedCounterAggregation

protected OperatingSystemPerVisitAggregation getNewAbstractRegexVersionedCounterAggregation(OperatingSystem operatingSystem, Visit visit, Duration fullDay)
Returns a new OperatingSystemPerVisitAggregation for the given OperatingSystem, the given Visit and the given Duration.

Specified by:
getNewAbstractRegexVersionedCounterAggregation in class AbstractRegexVersionedPerVisitAggregator<OperatingSystem,OperatingSystemPerVisitAggregation>
Parameters:
operatingSystem - the OperatingSystem
visit - the Visit
fullDay - the Duration
Returns:
a new OperatingSystemPerVisitAggregation
See Also:
# getNewAbstractRegexVersionedCounterAggregation(org.torweg.pulse.component.statistics .model.AbstractVersioned, org.torweg.pulse.component.statistics.model.Visit, org.torweg.pulse.util.time.Duration)