Package io.opencensus.implcore.stats
Class MutableViewData
- java.lang.Object
-
- io.opencensus.implcore.stats.MutableViewData
-
- Direct Known Subclasses:
MutableViewData.CumulativeMutableViewData
,MutableViewData.IntervalMutableViewData
abstract class MutableViewData extends java.lang.Object
A mutable version ofViewData
, used for recording stats and start/end time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
MutableViewData.CreateCumulative
private static class
MutableViewData.CreateInterval
private static class
MutableViewData.CumulativeMutableViewData
private static class
MutableViewData.IntervalMutableViewData
-
Field Summary
Fields Modifier and Type Field Description private View
view
(package private) static Timestamp
ZERO_TIMESTAMP
-
Constructor Summary
Constructors Modifier Constructor Description private
MutableViewData(View view)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract void
clearStats()
(package private) static MutableViewData
create(View view, Timestamp start)
Constructs a newMutableViewData
.(package private) View
getView()
(package private) abstract void
record(TagContext context, double value, Timestamp timestamp, java.util.Map<java.lang.String,AttachmentValue> attachments)
Record stats with the given tags.(package private) abstract void
resumeStatsCollection(Timestamp now)
(package private) abstract Metric
toMetric(Timestamp now, CurrentState.State state)
(package private) abstract ViewData
toViewData(Timestamp now, CurrentState.State state)
Convert thisMutableViewData
toViewData
.
-
-
-
Constructor Detail
-
MutableViewData
private MutableViewData(View view)
-
-
Method Detail
-
create
static MutableViewData create(View view, Timestamp start)
Constructs a newMutableViewData
.- Parameters:
view
- theView
linked with thisMutableViewData
.start
- the startTimestamp
.- Returns:
- a
MutableViewData
.
-
getView
View getView()
-
toMetric
@Nullable abstract Metric toMetric(Timestamp now, CurrentState.State state)
-
record
abstract void record(TagContext context, double value, Timestamp timestamp, java.util.Map<java.lang.String,AttachmentValue> attachments)
Record stats with the given tags.
-
toViewData
abstract ViewData toViewData(Timestamp now, CurrentState.State state)
Convert thisMutableViewData
toViewData
.
-
clearStats
abstract void clearStats()
-
resumeStatsCollection
abstract void resumeStatsCollection(Timestamp now)
-
-