Package io.opencensus.implcore.stats
Class MutableViewData.CumulativeMutableViewData
- java.lang.Object
-
- io.opencensus.implcore.stats.MutableViewData
-
- io.opencensus.implcore.stats.MutableViewData.CumulativeMutableViewData
-
- Enclosing class:
- MutableViewData
private static final class MutableViewData.CumulativeMutableViewData extends MutableViewData
-
-
Field Summary
Fields Modifier and Type Field Description private MetricDescriptormetricDescriptorprivate Timestampstartprivate java.util.Map<java.util.List<TagValue>,MutableAggregation>tagValueAggregationMap-
Fields inherited from class io.opencensus.implcore.stats.MutableViewData
ZERO_TIMESTAMP
-
-
Constructor Summary
Constructors Modifier Constructor Description privateCumulativeMutableViewData(View view, Timestamp start)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidclearStats()private voidhandleTimeRewinds(Timestamp now)This method attemps to migrate this view into a reasonable state in the event of time going backwards.(package private) voidrecord(TagContext context, double value, Timestamp timestamp, java.util.Map<java.lang.String,AttachmentValue> attachments)Record stats with the given tags.(package private) voidresumeStatsCollection(Timestamp now)(package private) MetrictoMetric(Timestamp now, CurrentState.State state)(package private) ViewDatatoViewData(Timestamp now, CurrentState.State state)Convert thisMutableViewDatatoViewData.-
Methods inherited from class io.opencensus.implcore.stats.MutableViewData
create, getView
-
-
-
-
Field Detail
-
start
private Timestamp start
-
tagValueAggregationMap
private final java.util.Map<java.util.List<TagValue>,MutableAggregation> tagValueAggregationMap
-
metricDescriptor
private final MetricDescriptor metricDescriptor
-
-
Method Detail
-
toMetric
@Nullable Metric toMetric(Timestamp now, CurrentState.State state)
- Specified by:
toMetricin classMutableViewData
-
record
void record(TagContext context, double value, Timestamp timestamp, java.util.Map<java.lang.String,AttachmentValue> attachments)
Description copied from class:MutableViewDataRecord stats with the given tags.- Specified by:
recordin classMutableViewData
-
toViewData
ViewData toViewData(Timestamp now, CurrentState.State state)
Description copied from class:MutableViewDataConvert thisMutableViewDatatoViewData.- Specified by:
toViewDatain classMutableViewData
-
handleTimeRewinds
private void handleTimeRewinds(Timestamp now)
This method attemps to migrate this view into a reasonable state in the event of time going backwards.
-
clearStats
void clearStats()
- Specified by:
clearStatsin classMutableViewData
-
resumeStatsCollection
void resumeStatsCollection(Timestamp now)
- Specified by:
resumeStatsCollectionin classMutableViewData
-
-