Package io.opencensus.common
Class ServerStatsFieldEnums
java.lang.Object
io.opencensus.common.ServerStatsFieldEnums
A Enum representation for Ids and Size for attributes of
ServerStats
.
See opencensus-server-stats-specs for the field ids and their length defined for Server Stats
- Since:
- 0.16
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Available Ids forServerStats
attributes.static enum
Size for each attributes inServerStats
. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
static int
Returns the total size required to encode theServerStats
.
-
Field Details
-
TOTALSIZE
private static final int TOTALSIZE
-
-
Constructor Details
-
ServerStatsFieldEnums
private ServerStatsFieldEnums()
-
-
Method Details
-
computeTotalSize
private static int computeTotalSize() -
getTotalSize
public static int getTotalSize()Returns the total size required to encode theServerStats
.- Returns:
- the total size required to encode all fields in
ServerStats
. - Since:
- 0.16
-