|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
org.torweg.pulse.component.statistics.model.aggregation.CountryPerVisitAggregation
@Entity public class CountryPerVisitAggregation
Aggregates the "countries" on a "per Visit" basis for the set Duration.
| 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 |
CountryPerVisitAggregation()
Deprecated. |
|
CountryPerVisitAggregation(StatisticsServer server, Duration duration)
Creates a new CountryPerVisitAggregation with the given StatisticsServer and the given Duration. |
| Method Summary | |
|---|---|
boolean |
aggregate(Visit visit,
org.hibernate.Session s)
Aggregates the given Visit. |
int |
getCount()
Returns the total country-hit count for all countries. |
int |
getCount(java.lang.String c)
Returns the country-hit count for the given country-string. |
java.util.Set<CountryHitCounter> |
getCounters()
Returns the underlying CountryHitCounters. |
java.util.Set<CountryHitCounter> |
getCountryHitCounters()
Returns the CountryHitCounters. |
boolean |
isAggregateable(Visit visit)
Test if the given Visit is aggregate-able by this CountryPerVisitAggregation. |
| Methods inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation |
|---|
getDataResolution, getDuration, getEndMillis, getStartMillis, getStatisticsServer, setDuration, setEndMillis, setStartMillis, setStatisticsServer, toString |
| 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 |
|---|
@Deprecated protected CountryPerVisitAggregation()
public CountryPerVisitAggregation(StatisticsServer server, Duration duration)
CountryPerVisitAggregation with the given StatisticsServer and the given Duration.
server - the StatisticsServerduration - the Duration| Method Detail |
|---|
public final java.util.Set<CountryHitCounter> getCountryHitCounters()
CountryHitCounters.
public final int getCount(java.lang.String c)
c - the country
public final int getCount()
getCount in interface ICountpublic final java.util.Set<CountryHitCounter> getCounters()
CountryHitCounters.
Collections.unmodifiableSet(this.counters)public final boolean isAggregateable(Visit visit)
Visit is aggregate-able by this CountryPerVisitAggregation.
isAggregateable in class AbstractAggregationvisit - the Visit
true if and only if this AbstractAggregation can
process the given Visit, false otherwise#isAggregateable(org.torweg.pulse.component.statistics.model.Visit)
public final boolean aggregate(Visit visit,
org.hibernate.Session s)
Visit.
aggregate in class AbstractAggregationvisit - the Visits - the HibernateTM-Session
true if and only if the Visit has been processed,
false otherwise#aggregate(org.torweg.pulse.component.statistics.model.Visit)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||