Package io.opencensus.implcore.stats
Class MeasureToViewMap
- java.lang.Object
-
- io.opencensus.implcore.stats.MeasureToViewMap
-
final class MeasureToViewMap extends java.lang.ObjectA class that stores a singleton map fromMeasureNames toMutableViewDatas.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<View>exportedViewsprivate com.google.common.collect.Multimap<java.lang.String,MutableViewData>mutableMapprivate java.util.Map<java.lang.String,Measure>registeredMeasuresprivate 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) voidclearStats()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 MutableViewDatagetMutableViewData(View.Name viewName)(package private) ViewDatagetView(View.Name viewName, Clock clock, CurrentState.State state)(package private) voidrecord(TagContext tags, MeasureMapInternal stats, Timestamp timestamp)(package private) voidregisterView(View view, Clock clock)Enable stats collection for the givenView.(package private) voidresumeStatsCollection(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)
-
-