java.lang.Object
net.i2p.stat.RateSampleDelivery.Sample
- Enclosing class:
RateSampleDelivery
Field Summary
FieldsModifier and TypeFieldDescription(package private) final longThe number of events in the sample.(package private) final RateSummaryListenerThe listener to notify with the sample.(package private) final longThe period the sample covers, in ms.(package private) final longtimestampMs / period: the archive step this sample is for.(package private) final longThe sample's archive step stamp, carried fromRate.coalesce().(package private) final doubleThe total event time in the sample.(package private) final doubleThe total value the sample sums up.Constructor Summary
ConstructorsConstructorDescriptionSample(RateSummaryListener listener, double totalValue, long eventCount, double totalEventTime, long period, long timestampMs) Builds one sample to deliver.Method Summary
Field Details
listener
The listener to notify with the sample.totalValue
final double totalValueThe total value the sample sums up.eventCount
final long eventCountThe number of events in the sample.totalEventTime
final double totalEventTimeThe total event time in the sample.period
final long periodThe period the sample covers, in ms.timestampMs
final long timestampMsThe sample's archive step stamp, carried fromRate.coalesce().step
final long steptimestampMs / period: the archive step this sample is for.
Constructor Details
Sample
Sample(RateSummaryListener listener, double totalValue, long eventCount, double totalEventTime, long period, long timestampMs) Builds one sample to deliver.- Parameters:
listener- the listener to notifytotalValue- the total value summedeventCount- the number of eventstotalEventTime- the total event timeperiod- the period covered, in mstimestampMs- when the sample was taken