public abstract class JmxAttribute extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ALIAS |
protected static String |
CASSANDRA_DOMAIN |
protected String |
checkName |
protected static String |
METRIC_TYPE |
protected String[] |
tags |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAlias(String field)
Get attribute alias.
|
ObjectName |
getBeanName() |
protected Map<String,String> |
getBeanParameters() |
static Map<String,String> |
getBeanParametersHash(String beanParametersString)
Gets bean parameter hash map.
|
protected String |
getDomain() |
static List<String> |
getExcludedBeanParams() |
Configuration |
getMatchingConf()
Gets the matching configuration for the attribute.
|
abstract List<Metric> |
getMetrics() |
int |
getMetricsCount()
Gets the metric count for the attribute.
|
protected String |
getMetricType(String subAttribute) |
protected String[] |
getTags() |
abstract boolean |
match(Configuration conf)
An abstract function implemented in the inherited classes JmxSimpleAttribute and
JmxComplexAttribute.
|
protected Boolean |
renameCassandraMetrics() |
void |
setMatchingConf(Configuration matchingConf)
Sets a matching configuration for the attribute.
|
String |
toString()
Returns string representation of JMX Attribute.
|
protected static final String ALIAS
protected static final String METRIC_TYPE
protected static final String CASSANDRA_DOMAIN
protected String[] tags
protected String checkName
public static Map<String,String> getBeanParametersHash(String beanParametersString)
protected Boolean renameCassandraMetrics()
public String toString()
public abstract List<Metric> getMetrics() throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException, IOException
public abstract boolean match(Configuration conf)
conf - Configuration a Configuration object that will be used to check if the Jmx
Attribute match this configurationpublic int getMetricsCount()
public Configuration getMatchingConf()
public void setMatchingConf(Configuration matchingConf)
public ObjectName getBeanName()
protected String getAlias(String field)
In order, tries to: * Use `alias_match` to generate an alias with a regular expression * Use `alias` directly * Create an generic alias prefixed with user's `metric_prefix` preference or default to `jmx`
Argument(s): * (Optional) `field` `Null` for `JmxSimpleAttribute`.
protected String[] getTags()
protected String getDomain()
Copyright © 2020. All rights reserved.