Class ModuleLoader.MXBeanImpl

    • Constructor Detail

      • MXBeanImpl

        MXBeanImpl​(ModuleLoader moduleLoader,
                   javax.management.ObjectName objectName)
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: ModuleLoaderMXBean
        Get a description of this module loader.
        Specified by:
        getDescription in interface ModuleLoaderMXBean
        Returns:
        a description of this module loader
      • getLinkTime

        public long getLinkTime()
        Description copied from interface: ModuleLoaderMXBean
        Get the estimated CPU time (in nanoseconds) spent linking in the life of this module loader.
        Specified by:
        getLinkTime in interface ModuleLoaderMXBean
        Returns:
        the estimated time in nanoseconds
      • getLoadTime

        public long getLoadTime()
        Description copied from interface: ModuleLoaderMXBean
        Get the estimated CPU time (in nanoseconds) spent loading modules into this loader.
        Specified by:
        getLoadTime in interface ModuleLoaderMXBean
        Returns:
        the estimated time in nanoseconds
      • getClassDefineTime

        public long getClassDefineTime()
        Description copied from interface: ModuleLoaderMXBean
        Get the estimated CPU time (in nanoseconds) spent defining classes for this loader.
        Specified by:
        getClassDefineTime in interface ModuleLoaderMXBean
        Returns:
        the estimated time in nanoseconds
      • getScanCount

        public int getScanCount()
        Description copied from interface: ModuleLoaderMXBean
        Get the number of times that dependencies of a module from this loader have been scanned.
        Specified by:
        getScanCount in interface ModuleLoaderMXBean
        Returns:
        the count
      • getRaceCount

        public int getRaceCount()
        Description copied from interface: ModuleLoaderMXBean
        Get the number of times a class was defined by two threads at once.
        Specified by:
        getRaceCount in interface ModuleLoaderMXBean
        Returns:
        the race count
      • getClassCount

        public int getClassCount()
        Description copied from interface: ModuleLoaderMXBean
        Get the number of classes defined in this module loader.
        Specified by:
        getClassCount in interface ModuleLoaderMXBean
        Returns:
        the number of classes defined in this module loader
      • dumpModuleInformation

        public java.lang.String dumpModuleInformation​(java.lang.String name)
        Description copied from interface: ModuleLoaderMXBean
        Dump all information for a single module as a string.
        Specified by:
        dumpModuleInformation in interface ModuleLoaderMXBean
        Parameters:
        name - the module name
        Returns:
        the string of module information
      • doDumpModuleInformation

        private void doDumpModuleInformation​(java.lang.String name,
                                             java.lang.StringBuilder b)
      • unloadModule

        public boolean unloadModule​(java.lang.String name)
        Description copied from interface: ModuleLoaderMXBean
        Attempt to unload a module from this module loader.
        Specified by:
        unloadModule in interface ModuleLoaderMXBean
        Parameters:
        name - the string form of the module identifier to unload
        Returns:
        true if the module was unloaded
      • refreshResourceLoaders

        public void refreshResourceLoaders​(java.lang.String name)
        Description copied from interface: ModuleLoaderMXBean
        Attempt to refresh the resource loaders of the given module.
        Specified by:
        refreshResourceLoaders in interface ModuleLoaderMXBean
        Parameters:
        name - the name of the module to refresh
      • relink

        public void relink​(java.lang.String name)
        Description copied from interface: ModuleLoaderMXBean
        Attempt to relink the given module.
        Specified by:
        relink in interface ModuleLoaderMXBean
        Parameters:
        name - the name of the module to relink
      • getDependencies

        public java.util.List<DependencyInfo> getDependencies​(java.lang.String name)
        Description copied from interface: ModuleLoaderMXBean
        Get the dependencies of the named module.
        Specified by:
        getDependencies in interface ModuleLoaderMXBean
        Parameters:
        name - the module name
        Returns:
        the module's dependencies
      • getModulePathsInfo

        public java.util.SortedMap<java.lang.String,​java.util.List<java.lang.String>> getModulePathsInfo​(java.lang.String name,
                                                                                                               boolean exports)
        Description copied from interface: ModuleLoaderMXBean
        Get a paths map for a given module.
        Specified by:
        getModulePathsInfo in interface ModuleLoaderMXBean
        Parameters:
        name - the module name
        exports - true for the exported paths, false for all paths
        Returns:
        the paths map information