public enum AWSMetricTransformerFactory extends java.lang.Enum<AWSMetricTransformerFactory>
Enum Constant and Description |
---|
DynamoDB |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_METRIC_TRANSFORM_PROVIDER_PACKAGE |
private static java.lang.String |
REQUEST_TRANSFORMER_CLASSNAME_SUFFIX |
private RequestMetricTransformer |
requestMetricTransformer
By default, the transformer class for each AWS specific service is
assumed to reside in the Java package
DEFAULT_METRIC_TRANSFORM_PROVIDER_PACKAGE and follow the naming
convention of <AwsPrefix>MetricTransformer. |
static java.lang.String |
transformerPackage |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildRequestMetricTransformerFQCN(java.lang.String awsPrefix,
java.lang.String packageName)
Returns the fully qualified class name of the request metric
transformer, given the specific AWS prefix.
|
RequestMetricTransformer |
getRequestMetricTransformer() |
static java.lang.String |
getTransformerPackage() |
private RequestMetricTransformer |
loadRequestMetricTransformer(java.lang.String fqcn) |
static void |
setTransformerPackage(java.lang.String transformPackage) |
static AWSMetricTransformerFactory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AWSMetricTransformerFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AWSMetricTransformerFactory DynamoDB
private static final java.lang.String REQUEST_TRANSFORMER_CLASSNAME_SUFFIX
public static final java.lang.String DEFAULT_METRIC_TRANSFORM_PROVIDER_PACKAGE
public static volatile java.lang.String transformerPackage
private volatile RequestMetricTransformer requestMetricTransformer
DEFAULT_METRIC_TRANSFORM_PROVIDER_PACKAGE
and follow the naming
convention of <AwsPrefix>MetricTransformer. The "AwsPrefix" is the
same as the enum literal name. Since each service specific request metric
transformer internally contains static reference to service specific
classes, this dynamic class loading mechansim allows service specific
transformers to be skipped in case some service specific class files are
absent in the classpath.public static AWSMetricTransformerFactory[] values()
for (AWSMetricTransformerFactory c : AWSMetricTransformerFactory.values()) System.out.println(c);
public static AWSMetricTransformerFactory 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 java.lang.String getTransformerPackage()
public static void setTransformerPackage(java.lang.String transformPackage)
public static java.lang.String buildRequestMetricTransformerFQCN(java.lang.String awsPrefix, java.lang.String packageName)
private RequestMetricTransformer loadRequestMetricTransformer(java.lang.String fqcn)
fqcn
- fully qualified class name.public RequestMetricTransformer getRequestMetricTransformer()