|
|
|
|
|
||||||||||
| 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.PIRecordCountAggregationHitCounter
@Entity public final class PIRecordCountAggregationHitCounter
The hit counter of the PIRecordCountAggregation.
| Constructor Summary | |
|---|---|
protected |
PIRecordCountAggregationHitCounter()
Deprecated. |
|
PIRecordCountAggregationHitCounter(AbstractAggregation.Hour h, Duration duration)
Creates a new HitCounter with the given
AbstractAggregation.Hour. |
|
PIRecordCountAggregationHitCounter(AbstractAggregation.Hour h, Duration duration,
int c)
Creates a new HitCounter with the given
AbstractAggregation.Hour and the given initial count. |
| Method Summary | |
|---|---|
int |
getCount()
Returns the value of the internal total. |
Duration |
getDuration()
Returns a Duration that represents the duration of the
HitCounter. |
AbstractAggregation.Hour |
getHour()
Returns the set AbstractAggregation.Hour. |
protected void |
increase()
Adds 1 to the internal total. |
boolean |
isHour(AbstractAggregation.Hour h)
Test whether the given AbstractAggregation.Hour matches the
internal hour. |
java.lang.String |
toString()
Returns a string representation. |
| 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 PIRecordCountAggregationHitCounter()
public PIRecordCountAggregationHitCounter(AbstractAggregation.Hour h, Duration duration)
HitCounter with the given
AbstractAggregation.Hour.
h - the AbstractAggregation.Hourduration - the Duration
public PIRecordCountAggregationHitCounter(AbstractAggregation.Hour h, Duration duration,
int c)
HitCounter with the given
AbstractAggregation.Hour and the given initial count.
h - the AbstractAggregation.Hourduration - the Durationc - the value to initialise counter with
java.lang.IllegalArgumentException - if (c < 0)| Method Detail |
|---|
public AbstractAggregation.Hour getHour()
AbstractAggregation.Hour.
public boolean isHour(AbstractAggregation.Hour h)
AbstractAggregation.Hour matches the
internal hour.
h - the AbstractAggregation.Hour
true if and only if the internal hour
matches the given AbstractAggregation.Hour,
false otherwisepublic Duration getDuration()
Duration that represents the duration of the
HitCounter.
Durationpublic int getCount()
getCount in interface ICountprotected void increase()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||