public enum ServiceMetricTypeGuesser extends 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,
String metricNameSuffix,
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(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ThroughputMetricType guessThroughputMetricType(Request<?> req, String metricNameSuffix, String byteCountMetricNameSuffix)
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.