public enum ServiceMetricTypeGuesser extends java.lang.Enum<ServiceMetricTypeGuesser>
ServiceMetricType
without causing compile time dependency on the service specific artifacts.
There exists a S3ServiceMetricTest.java unit test in the S3 client library
that ensures this class behaves consistently with the service metric enum
defined in the S3 client library.Modifier and Type | Method and Description |
---|---|
static ThroughputMetricType |
guessThroughputMetricType(Request<?> req,
java.lang.String metricNameSuffix,
java.lang.String byteCountMetricNameSuffix)
Returned the best-guessed throughput metric type for the given request,
or null if there is none or if metric is disabled.
|
static ServiceMetricTypeGuesser |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServiceMetricTypeGuesser[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static ServiceMetricTypeGuesser[] values()
for (ServiceMetricTypeGuesser c : ServiceMetricTypeGuesser.values()) System.out.println(c);
public static ServiceMetricTypeGuesser valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ThroughputMetricType guessThroughputMetricType(Request<?> req, java.lang.String metricNameSuffix, java.lang.String byteCountMetricNameSuffix)