public class DefaultMetricNamingStrategy extends Object implements ObjectNamingStrategy
counter.foo.bar.spam
translates to an object name with type=counter
, name=foo
and
value=bar.spam
. This results in a more or less pleasing view with no tweaks in
jconsole or jvisualvm. The domain is copied from the input key and the type in the
input key is discarded.Constructor and Description |
---|
DefaultMetricNamingStrategy() |
Modifier and Type | Method and Description |
---|---|
ObjectName |
getObjectName(Object managedBean,
String beanKey) |
public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException
getObjectName
in interface ObjectNamingStrategy
MalformedObjectNameException
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.