Interface ClazzStatisticMBean
- All Superinterfaces:
Runnable, Shutdownable
- All Known Implementing Classes:
ClazzStatistic
JMX-Interface for the
ClazzStatistic.- Since:
- 2.3 (29.11.24)
- Author:
- oboehm
-
Method Summary
Modifier and TypeMethodDescriptionExports the statistics of the collected classes to the default location.Exports the statistics of the collected classes to the file with the given filename.Returns the URI where the statistic should be exported to.Gets a summary about the loaded and dead classes.voidImportes the statistics form the given filename or URI.voidlogMe()Prints the statistic to the log output.Methods inherited from interface Shutdownable
addMeAsShutdownHook, isShutdownHook, removeMeAsShutdownHookModifier and TypeMethodDescriptionvoidTo be able to register the instance as shutdown hook you can use this (non static) method.booleanHere you can ask if the instance was already registeres ad shutdown hook.voidIf you want to unregister the instance as shutdown hook you can use this method.
-
Method Details
-
logMe
Prints the statistic to the log output. -
exportCSV
Exports the statistics of the collected classes to the default location.- Returns:
- export file
- Throws:
IOException- in case of I/O problems
-
exportCSV
Exports the statistics of the collected classes to the file with the given filename.- Parameters:
filename- filename or URI, where the statistics should be exported to- Returns:
- export URI
- Throws:
IOException- in case of I/O problems
-
importCSV
Importes the statistics form the given filename or URI.- Parameters:
filename- filename or URI- Since:
- 2.7
-
getExportURI
-
getSummary
String getSummary()Gets a summary about the loaded and dead classes.- Returns:
- a string with a short summary
- Since:
- 3.0
-