org.torweg.pulse.component.statistics.model.aggregation
Class UserAgentPerVisitAggregation
java.lang.Object
org.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
org.torweg.pulse.component.statistics.model.aggregation.AbstractRegexVersionedCounterAggregation<UserAgent,UserAgentVersionCounter>
org.torweg.pulse.component.statistics.model.aggregation.UserAgentPerVisitAggregation
- All Implemented Interfaces:
- java.io.Serializable, ICount, IHasDuration
@Entity
public class UserAgentPerVisitAggregation
- extends AbstractRegexVersionedCounterAggregation<UserAgent,UserAgentVersionCounter>
Stores information about the "user-agent" as aggregated by UserAgentPerVisitAggregator on a "per Visit" basis for the set
Duration.
- Version:
- $Revision: 1579 $
- Author:
- Daniel Dietz
- See Also:
- Serialized Form
|
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 UserAgentPerVisitAggregation. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
UserAgentPerVisitAggregation
@Deprecated
protected UserAgentPerVisitAggregation()
- Deprecated.
- Default constructor for hibernateTM.
UserAgentPerVisitAggregation
public UserAgentPerVisitAggregation(UserAgent agent, StatisticsServer server, Duration duration)
- Creates a new
UserAgentPerVisitAggregation for the given StatisticsServer and the given Duration.
- Parameters:
agent - the UserAgentserver - the StatisticsServerduration - the Duration
isAggregateable
public final boolean isAggregateable(Visit visit)
- Test if the given
Visit is aggregate-able by this UserAgentPerVisitAggregation.
- Specified by:
isAggregateable in class AbstractAggregation
- Parameters:
visit - the Visit
- Returns:
true if and only if this UserAgentPerVisitAggregation 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 Visits - 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)