Interface ClazzStatisticMBean

All Superinterfaces:
Runnable, Shutdownable
All Known Implementing Classes:
ClazzStatistic

public interface ClazzStatisticMBean extends Shutdownable
JMX-Interface for the ClazzStatistic.
Since:
2.3 (29.11.24)
Author:
oboehm
  • Method Summary

    Modifier and Type
    Method
    Description
    Exports the statistics of the collected classes to the default location.
    exportCSV(String filename)
    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.
    void
    importCSV(String filename)
    Importes the statistics form the given filename or URI.
    void
    Prints the statistic to the log output.

    Methods inherited from interface Runnable

    run

    Methods inherited from interface Shutdownable

    addMeAsShutdownHook, isShutdownHook, removeMeAsShutdownHook
    Modifier and Type
    Method
    Description
    void
    To be able to register the instance as shutdown hook you can use this (non static) method.
    boolean
    Here you can ask if the instance was already registeres ad shutdown hook.
    void
    If you want to unregister the instance as shutdown hook you can use this method.
  • Method Details

    • logMe

      @Description("logs the statistic") void logMe()
      Prints the statistic to the log output.
    • exportCSV

      URI exportCSV() throws IOException
      Exports the statistics of the collected classes to the default location.
      Returns:
      export file
      Throws:
      IOException - in case of I/O problems
    • exportCSV

      URI exportCSV(String filename) throws IOException
      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

      void importCSV(String filename)
      Importes the statistics form the given filename or URI.
      Parameters:
      filename - filename or URI
      Since:
      2.7
    • getExportURI

      URI getExportURI()
      Returns the URI where the statistic should be exported to.
      Returns:
      export URI
    • getSummary

      String getSummary()
      Gets a summary about the loaded and dead classes.
      Returns:
      a string with a short summary
      Since:
      3.0