Package io.opencensus.common
Enum ServerStatsFieldEnums.Size
- java.lang.Object
-
- java.lang.Enum<ServerStatsFieldEnums.Size>
-
- io.opencensus.common.ServerStatsFieldEnums.Size
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ServerStatsFieldEnums.Size>
- Enclosing class:
- ServerStatsFieldEnums
public static enum ServerStatsFieldEnums.Size extends java.lang.Enum<ServerStatsFieldEnums.Size>
Size for each attributes inServerStats
.- Since:
- 0.16
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SERVER_STATS_LB_LATENCY_SIZE
Number of bytes used to represent latency observed at Load Balancer.SERVER_STATS_SERVICE_LATENCY_SIZE
Number of bytes used to represent latency observed at Server.SERVER_STATS_TRACE_OPTION_SIZE
Number of bytes used to represent Trace option.
-
Field Summary
Fields Modifier and Type Field Description private int
value
-
Constructor Summary
Constructors Modifier Constructor Description private
Size(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
value()
Returns the numerical value of theServerStatsFieldEnums.Size
.static ServerStatsFieldEnums.Size
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ServerStatsFieldEnums.Size[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVER_STATS_LB_LATENCY_SIZE
public static final ServerStatsFieldEnums.Size SERVER_STATS_LB_LATENCY_SIZE
Number of bytes used to represent latency observed at Load Balancer.- Since:
- 0.16
-
SERVER_STATS_SERVICE_LATENCY_SIZE
public static final ServerStatsFieldEnums.Size SERVER_STATS_SERVICE_LATENCY_SIZE
Number of bytes used to represent latency observed at Server.- Since:
- 0.16
-
SERVER_STATS_TRACE_OPTION_SIZE
public static final ServerStatsFieldEnums.Size SERVER_STATS_TRACE_OPTION_SIZE
Number of bytes used to represent Trace option.- Since:
- 0.16
-
-
Method Detail
-
values
public static ServerStatsFieldEnums.Size[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServerStatsFieldEnums.Size c : ServerStatsFieldEnums.Size.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerStatsFieldEnums.Size valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
Returns the numerical value of theServerStatsFieldEnums.Size
.- Returns:
- the numerical value of the
Size
. - Since:
- 0.16
-
-