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 AbstractRegexVersionedCounterAggregation<T,U extends AbstractRegexVersionedCounter<?>>

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<T,U>
Type Parameters:
T - the org.torweg.pulse.component.statistics.AbstractRegexVersioned being counted
U - the underlying AbstractRegexVersionedCounter
All Implemented Interfaces:
java.io.Serializable, ICount, IHasDuration
Direct Known Subclasses:
OperatingSystemPerVisitAggregation, UserAgentPerVisitAggregation

@MappedSuperclass
public abstract class AbstractRegexVersionedCounterAggregation<T,U extends AbstractRegexVersionedCounter<?>>
extends AbstractAggregation
implements ICount

An abstract base class to derive the actual aggregation for an AbstractRegexVersioned from.

Version:
$Revision: 1594 $
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
AbstractRegexVersionedCounterAggregation()
           
 
Method Summary
 int getCount()
          Returns the counter.
 T getCounted()
          Returns the underlying org.torweg.pulse.component.statistics.* being counted.
 int getUnknownVersionTotal()
          Returns the counter of unmatched Visits.
 java.util.Set<U> getVersionCounters()
          Returns the underlying set of AbstractRegexVersionedCounter.
protected  void increase()
          Adds 1 to the internal counter counter.
protected  void setCount(int value)
          Sets the internal counter to the given value.
protected  void setCounted(T count)
          Sets the underlying org.torweg.pulse.component.statistics.* being counted.
 java.lang.String toString()
          Returns a string representation.
 
Methods inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
aggregate, getDataResolution, getDuration, getEndMillis, getStartMillis, getStatisticsServer, isAggregateable, 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

AbstractRegexVersionedCounterAggregation

public AbstractRegexVersionedCounterAggregation()
Method Detail

getCounted

public final T getCounted()
Returns the underlying org.torweg.pulse.component.statistics.* being counted.

Returns:
<T>, the underlying org.torweg.pulse.component.statistics.* being counted

setCounted

protected final void setCounted(T count)
Sets the underlying org.torweg.pulse.component.statistics.* being counted.

Parameters:
count - the org.torweg.pulse.component.statistics.* to count
Throws:
java.lang.NullPointerException - if the given count is null

getVersionCounters

public final java.util.Set<U> getVersionCounters()
Returns the underlying set of AbstractRegexVersionedCounter.

Returns:
the counters

getCount

public final int getCount()
Returns the counter.

Specified by:
getCount in interface ICount
Returns:
the counter

setCount

protected final void setCount(int value)
Sets the internal counter to the given value.

Parameters:
value - the value to set
Throws:
java.lang.IllegalArgumentException - if
  • value < 0

increase

protected final void increase()
Adds 1 to the internal counter counter.


getUnknownVersionTotal

public final int getUnknownVersionTotal()
Returns the counter of unmatched Visits.

Returns:
the counter of unmatched Visits

toString

public java.lang.String toString()
Returns a string representation.

Overrides:
toString in class AbstractAggregation
Returns:
a string representation