public class JConsoleResultNameStrategyImpl extends Object implements ResultNameStrategy
<domain-name>.<property-name><property-name><attribute-name><composite-data-key-name>
E.g. For objectName = "type:name=metric,value=bar" and attribute "count",
it will general resultName = "type.metric.bar.count"| Constructor and Description |
|---|
JConsoleResultNameStrategyImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
escapeObjectName(ObjectName objectName)
Transforms an ObjectName into a plain String
only composed of ('a' to 'Z', 'A' to 'Z', '.', '_') similar to JConsole naming.
|
ExpressionLanguageEngine |
getExpressionLanguageEngine() |
String |
getResultName(Query query,
ObjectName objectName,
String attribute,
String compositeDataKey,
Integer position) |
void |
postConstruct(Map<String,String> settings) |
void |
setExpressionLanguageEngine(ExpressionLanguageEngine expressionLanguageEngine) |
protected final Logger logger
@Nonnull public String getResultName(@Nonnull Query query, @Nonnull ObjectName objectName, @Nullable String attribute, @Nullable String compositeDataKey, @Nullable Integer position)
getResultName in interface ResultNameStrategyprotected String escapeObjectName(@Nonnull ObjectName objectName)
public ExpressionLanguageEngine getExpressionLanguageEngine()
public void setExpressionLanguageEngine(ExpressionLanguageEngine expressionLanguageEngine)
public void postConstruct(@Nonnull Map<String,String> settings)
postConstruct in interface ResultNameStrategyCopyright © 2016. All Rights Reserved.