Package org.jboss.modules
Class ModuleLoader.MXBeanImpl
java.lang.Object
org.jboss.modules.ModuleLoader.MXBeanImpl
- All Implemented Interfaces:
ModuleLoaderMXBean
- Enclosing class:
ModuleLoader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddoDumpModuleInformation(String name, StringBuilder b) private List<DependencyInfo> doGetDependencies(Module module) private List<ResourceLoaderInfo> doGetResourceLoaders(Module module) Dump all information for all modules as a string.dumpModuleInformation(String name) Dump all information for a single module as a string.intGet the number of classes defined in this module loader.longGet the estimated CPU time (in nanoseconds) spent defining classes for this loader.getDependencies(String name) Get the dependencies of the named module.Get a description of this module loader.longGet the estimated CPU time (in nanoseconds) spent linking in the life of this module loader.intGet the number of modules currently loaded.longGet the estimated CPU time (in nanoseconds) spent loading modules into this loader.getModuleDescription(String name) Get the complete description of this module.private ModuleLoadergetModulePathsInfo(String name, boolean exports) Get a paths map for a given module.intGet the number of times a class was defined by two threads at once.getResourceLoaders(String name) Get the resource loaders of the named module.intGet the number of times that dependencies of a module from this loader have been scanned.private ModuleloadModule(String name, ModuleLoader loader) Obtain a list of the current module names.voidrefreshResourceLoaders(String name) Attempt to refresh the resource loaders of the given module.voidAttempt to relink the given module.booleanunloadModule(String name) Attempt to unload a module from this module loader.
-
Field Details
-
reference
-
-
Constructor Details
-
MXBeanImpl
MXBeanImpl(ModuleLoader moduleLoader, ObjectName objectName)
-
-
Method Details
-
getDescription
Description copied from interface:ModuleLoaderMXBeanGet a description of this module loader.- Specified by:
getDescriptionin interfaceModuleLoaderMXBean- Returns:
- a description of this module loader
-
getLinkTime
public long getLinkTime()Description copied from interface:ModuleLoaderMXBeanGet the estimated CPU time (in nanoseconds) spent linking in the life of this module loader.- Specified by:
getLinkTimein interfaceModuleLoaderMXBean- Returns:
- the estimated time in nanoseconds
-
getLoadTime
public long getLoadTime()Description copied from interface:ModuleLoaderMXBeanGet the estimated CPU time (in nanoseconds) spent loading modules into this loader.- Specified by:
getLoadTimein interfaceModuleLoaderMXBean- Returns:
- the estimated time in nanoseconds
-
getClassDefineTime
public long getClassDefineTime()Description copied from interface:ModuleLoaderMXBeanGet the estimated CPU time (in nanoseconds) spent defining classes for this loader.- Specified by:
getClassDefineTimein interfaceModuleLoaderMXBean- Returns:
- the estimated time in nanoseconds
-
getScanCount
public int getScanCount()Description copied from interface:ModuleLoaderMXBeanGet the number of times that dependencies of a module from this loader have been scanned.- Specified by:
getScanCountin interfaceModuleLoaderMXBean- Returns:
- the count
-
getLoadedModuleCount
public int getLoadedModuleCount()Description copied from interface:ModuleLoaderMXBeanGet the number of modules currently loaded.- Specified by:
getLoadedModuleCountin interfaceModuleLoaderMXBean- Returns:
- the loaded module count
-
getRaceCount
public int getRaceCount()Description copied from interface:ModuleLoaderMXBeanGet the number of times a class was defined by two threads at once.- Specified by:
getRaceCountin interfaceModuleLoaderMXBean- Returns:
- the race count
-
getClassCount
public int getClassCount()Description copied from interface:ModuleLoaderMXBeanGet the number of classes defined in this module loader.- Specified by:
getClassCountin interfaceModuleLoaderMXBean- Returns:
- the number of classes defined in this module loader
-
queryLoadedModuleNames
Description copied from interface:ModuleLoaderMXBeanObtain a list of the current module names.- Specified by:
queryLoadedModuleNamesin interfaceModuleLoaderMXBean- Returns:
- the module names
-
dumpAllModuleInformation
Description copied from interface:ModuleLoaderMXBeanDump all information for all modules as a string.- Specified by:
dumpAllModuleInformationin interfaceModuleLoaderMXBean- Returns:
- the string of module information
-
dumpModuleInformation
Description copied from interface:ModuleLoaderMXBeanDump all information for a single module as a string.- Specified by:
dumpModuleInformationin interfaceModuleLoaderMXBean- Parameters:
name- the module name- Returns:
- the string of module information
-
doDumpModuleInformation
-
unloadModule
Description copied from interface:ModuleLoaderMXBeanAttempt to unload a module from this module loader.- Specified by:
unloadModulein interfaceModuleLoaderMXBean- Parameters:
name- the string form of the module identifier to unload- Returns:
trueif the module was unloaded
-
refreshResourceLoaders
Description copied from interface:ModuleLoaderMXBeanAttempt to refresh the resource loaders of the given module.- Specified by:
refreshResourceLoadersin interfaceModuleLoaderMXBean- Parameters:
name- the name of the module to refresh
-
relink
Description copied from interface:ModuleLoaderMXBeanAttempt to relink the given module.- Specified by:
relinkin interfaceModuleLoaderMXBean- Parameters:
name- the name of the module to relink
-
getDependencies
Description copied from interface:ModuleLoaderMXBeanGet the dependencies of the named module.- Specified by:
getDependenciesin interfaceModuleLoaderMXBean- Parameters:
name- the module name- Returns:
- the module's dependencies
-
doGetDependencies
-
getResourceLoaders
Description copied from interface:ModuleLoaderMXBeanGet the resource loaders of the named module.- Specified by:
getResourceLoadersin interfaceModuleLoaderMXBean- Parameters:
name- the module name- Returns:
- the module's resource loaders
-
doGetResourceLoaders
-
getModuleDescription
Description copied from interface:ModuleLoaderMXBeanGet the complete description of this module.- Specified by:
getModuleDescriptionin interfaceModuleLoaderMXBean- Parameters:
name- the module name- Returns:
- the module description
-
getModulePathsInfo
Description copied from interface:ModuleLoaderMXBeanGet a paths map for a given module.- Specified by:
getModulePathsInfoin interfaceModuleLoaderMXBean- Parameters:
name- the module nameexports-truefor the exported paths,falsefor all paths- Returns:
- the paths map information
-
loadModule
-
getModuleLoader
-