Class JmxDatacollectionConfiggenerator


  • public class JmxDatacollectionConfiggenerator
    extends java.lang.Object
    Author:
    Simon Walter , Markus Neumann
    • Field Detail

      • aliasMap

        protected final java.util.Map<java.lang.String,​java.lang.Integer> aliasMap
      • aliasList

        protected final java.util.List<java.lang.String> aliasList
    • Constructor Detail

      • JmxDatacollectionConfiggenerator

        public JmxDatacollectionConfiggenerator​(LogAdapter logger)
    • Method Detail

      • generateJmxConfigModel

        @Deprecated
        public JmxDatacollectionConfig generateJmxConfigModel​(javax.management.MBeanServerConnection mBeanServerConnection,
                                                              java.lang.String serviceName,
                                                              java.lang.Boolean runStandardVmBeans,
                                                              java.lang.Boolean skipNonNumber,
                                                              java.util.Map<java.lang.String,​java.lang.String> dictionary)
                                                       throws MBeanServerQueryException,
                                                              java.io.IOException,
                                                              javax.management.JMException
        This method is for backwards compatibility and allows to not set any ids. If so, ids is set to "*:*".
        Parameters:
        mBeanServerConnection -
        serviceName -
        runStandardVmBeans -
        dictionary -
        Returns:
        Throws:
        MBeanServerQueryException
        java.io.IOException
        javax.management.JMException
      • generateJmxConfigModel

        public JmxDatacollectionConfig generateJmxConfigModel​(java.util.List<java.lang.String> ids,
                                                              javax.management.MBeanServerConnection mBeanServerConnection,
                                                              java.lang.String serviceName,
                                                              java.lang.Boolean runStandardVmBeans,
                                                              java.lang.Boolean skipNonNumber,
                                                              java.util.Map<java.lang.String,​java.lang.String> dictionary)
                                                       throws MBeanServerQueryException,
                                                              java.io.IOException,
                                                              javax.management.JMException
        Throws:
        MBeanServerQueryException
        java.io.IOException
        javax.management.JMException
      • matches

        protected boolean matches​(java.util.Collection<FilterCriteria> criteriaList,
                                  javax.management.ObjectName objectName,
                                  javax.management.MBeanAttributeInfo mBeanAttributeInfo)
        Verifies if the given mBeanAttributeInfo matches one of the given criteria list.
        Parameters:
        criteriaList -
        mBeanAttributeInfo -
        Returns:
        True if the given mBeanAttributeInfo matches one of the given criteria list.
      • writeJmxConfigFile

        public void writeJmxConfigFile​(JmxDatacollectionConfig jmxDatacollectionConfigModel,
                                       java.lang.String outFile)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • createAndRegisterUniqueAlias

        protected java.lang.String createAndRegisterUniqueAlias​(java.lang.String originalAlias)