Class NameUtils


  • public class NameUtils
    extends Object
    • Constructor Detail

      • NameUtils

        public NameUtils()
    • Method Detail

      • getDefaultName

        public static String getDefaultName​(Class<?> declaringClass,
                                            String method)
        Get default metric name. Experience has shown that we don't need to include all of the package details for each method metric we're gathering. The class names are unique enough to be useful without this. We need to migrate to an easier format: ..
      • getSupername

        public static String getSupername​(String nodePrefix,
                                          String... nameParts)
        Get the metric fullname with no default value.
        Parameters:
        nameParts - user specified name parts
      • getName

        public static String getName​(String nodePrefix,
                                     String name,
                                     String defaultName,
                                     String... suffix)
        Get the metric fullname.
        Parameters:
        name - user specified name
        defaultName - 'class name + method name', not null.