|
|
|
|
|
||||||||||
| 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
@MappedSuperclass public abstract class AbstractAggregation
Abstract bass class representing a basic aggregation of statistical data (by
aggregating Visits) as being produced by an AbstractBaseAggregator.
| Nested Class Summary | |
|---|---|
static class |
AbstractAggregation.Hour
The known hours for the PIRecordCountAggregation.HitCounter. |
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
LOGGER
the logger. |
| Constructor Summary | |
|---|---|
AbstractAggregation()
|
|
| Method Summary | |
|---|---|
abstract boolean |
aggregate(Visit visit,
org.hibernate.Session s)
Aggregates the given Visit. |
Period |
getDataResolution()
Returns the data resolution as Period. |
Duration |
getDuration()
Returns a Duration representing the start/end of the AbstractAggregation. |
long |
getEndMillis()
Returns the end time-stamp. |
long |
getStartMillis()
Returns the start time-stamp. |
StatisticsServer |
getStatisticsServer()
Returns the StatisticsServer the aggregation is related to. |
abstract boolean |
isAggregateable(Visit visit)
Checks if the given Visit can be aggregated by the AbstractRegexVersionedCounterAggregation. |
protected void |
setDuration(Duration duration)
Sets the start/end of the AbstractAggregation from the given
Duration. |
protected void |
setEndMillis(long end)
Sets the end time-stamp. |
protected void |
setStartMillis(long start)
Sets the start time-stamp. |
protected void |
setStatisticsServer(StatisticsServer server)
Sets the StatisticsServer. |
java.lang.String |
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 |
| Field Detail |
|---|
protected static final org.slf4j.Logger LOGGER
| Constructor Detail |
|---|
public AbstractAggregation()
| Method Detail |
|---|
protected final void setStartMillis(long start)
start - the start time to setpublic final long getStartMillis()
protected final void setEndMillis(long end)
end - the end time to setpublic final long getEndMillis()
protected final void setDuration(Duration duration)
AbstractAggregation from the given
Duration.
duration - the Duration to apply
java.lang.NullPointerException - if the given Duration is null
java.lang.IllegalArgumentException - if the given Duration does not match a valid Periodpublic final Duration getDuration()
Duration representing the start/end of the AbstractAggregation.
getDuration in interface IHasDurationDurationpublic final Period getDataResolution()
Period.
Periodpublic final StatisticsServer getStatisticsServer()
StatisticsServer the aggregation is related to.
StatisticsServerprotected final void setStatisticsServer(StatisticsServer server)
StatisticsServer.
server - the StatisticsServer
java.lang.NullPointerException - if the given server is nullpublic abstract boolean isAggregateable(Visit visit)
Visit can be aggregated by the AbstractRegexVersionedCounterAggregation.
visit - the Visit
true if and only if the Visit can be processed,
false otherwise
public abstract boolean aggregate(Visit visit,
org.hibernate.Session s)
Visit.
visit - the Visits - a HibernateTM-Session
true if and only if the Visit could be processed,
false otherwisepublic java.lang.String toString()
toString in class java.lang.ObjectAbstractAggregation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||