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 MetricDescriptor
metricDescriptor
private Timestamp
start
private 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 private
CumulativeMutableViewData(View view, Timestamp start)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
clearStats()
private void
handleTimeRewinds(Timestamp now)
This method attemps to migrate this view into a reasonable state in the event of time going backwards.(package private) void
record(TagContext context, double value, Timestamp timestamp, java.util.Map<java.lang.String,AttachmentValue> attachments)
Record stats with the given tags.(package private) void
resumeStatsCollection(Timestamp now)
(package private) Metric
toMetric(Timestamp now, CurrentState.State state)
(package private) ViewData
toViewData(Timestamp now, CurrentState.State state)
Convert thisMutableViewData
toViewData
.-
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:
toMetric
in classMutableViewData
-
record
void record(TagContext context, double value, Timestamp timestamp, java.util.Map<java.lang.String,AttachmentValue> attachments)
Description copied from class:MutableViewData
Record stats with the given tags.- Specified by:
record
in classMutableViewData
-
toViewData
ViewData toViewData(Timestamp now, CurrentState.State state)
Description copied from class:MutableViewData
Convert thisMutableViewData
toViewData
.- Specified by:
toViewData
in 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:
clearStats
in classMutableViewData
-
resumeStatsCollection
void resumeStatsCollection(Timestamp now)
- Specified by:
resumeStatsCollection
in classMutableViewData
-
-