Package io.opencensus.implcore.stats
Class MeasureToViewMap
- java.lang.Object
-
- io.opencensus.implcore.stats.MeasureToViewMap
-
final class MeasureToViewMap extends java.lang.Object
A class that stores a singleton map fromMeasureName
s toMutableViewData
s.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<View>
exportedViews
private com.google.common.collect.Multimap<java.lang.String,MutableViewData>
mutableMap
private java.util.Map<java.lang.String,Measure>
registeredMeasures
private java.util.Map<View.Name,View>
registeredViews
-
Constructor Summary
Constructors Constructor Description MeasureToViewMap()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
clearStats()
private static java.util.Set<View>
filterExportedViews(java.util.Collection<View> allViews)
(package private) java.util.Set<View>
getExportedViews()
(package private) java.util.List<Metric>
getMetrics(Clock clock, CurrentState.State state)
private MutableViewData
getMutableViewData(View.Name viewName)
(package private) ViewData
getView(View.Name viewName, Clock clock, CurrentState.State state)
(package private) void
record(TagContext tags, MeasureMapInternal stats, Timestamp timestamp)
(package private) void
registerView(View view, Clock clock)
Enable stats collection for the givenView
.(package private) void
resumeStatsCollection(Timestamp now)
-
-
-
Field Detail
-
mutableMap
private final com.google.common.collect.Multimap<java.lang.String,MutableViewData> mutableMap
-
registeredMeasures
private final java.util.Map<java.lang.String,Measure> registeredMeasures
-
exportedViews
@Nullable private volatile java.util.Set<View> exportedViews
-
-
Method Detail
-
getView
@Nullable ViewData getView(View.Name viewName, Clock clock, CurrentState.State state)
-
getExportedViews
java.util.Set<View> getExportedViews()
-
filterExportedViews
private static java.util.Set<View> filterExportedViews(java.util.Collection<View> allViews)
-
getMutableViewData
@Nullable private MutableViewData getMutableViewData(View.Name viewName)
-
record
void record(TagContext tags, MeasureMapInternal stats, Timestamp timestamp)
-
getMetrics
java.util.List<Metric> getMetrics(Clock clock, CurrentState.State state)
-
clearStats
void clearStats()
-
resumeStatsCollection
void resumeStatsCollection(Timestamp now)
-
-