Class Starter

java.lang.Object
clazzfish.monitor.Starter

public final class Starter extends Object
The Starter class loads automatically the Monitor classes.
Since:
2.3 (22.11.24)
Author:
oboehm
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    static void
    Does not register all MBeans but add also the ClazzStatistic as shutdown hook.
    static void
    record(File dir)
    Does not register all MBeans but add also the ClazzStatistic as shutdown hook.
    static void
    record(URI base)
    Does not register all MBeans but add also the ClazzStatistic as shutdown hook.
    static void
    Does not register all MBeans but add them also as shutdown hook.
    static void
    Does not register all MBeans but add them also as shutdown hook.
    static void
    recordAll(URI base)
    Does not register all MBeans but add them also as shutdown hook.
    static void
    Registers all MBeans for monitoring the classpath and resources.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • Starter Link icon

      public Starter()
  • Method Details Link icon

    • start Link icon

      public static void start()
      Registers all MBeans for monitoring the classpath and resources. Also the ClazzStatistic is registered for importing and exporting the statistics of loaded classes.
    • record Link icon

      public static void record()
      Does not register all MBeans but add also the ClazzStatistic as shutdown hook.
    • recordAll Link icon

      public static void recordAll()
      Does not register all MBeans but add them also as shutdown hook. So at the end of the program all collected dates are exported.
    • record Link icon

      public static void record(File dir)
      Does not register all MBeans but add also the ClazzStatistic as shutdown hook.
      Parameters:
      dir - directory where the statistic is stored
    • record Link icon

      public static void record(URI base)
      Does not register all MBeans but add also the ClazzStatistic as shutdown hook.
      Parameters:
      base - URI where the statistic is stored
      Since:
      2.5
    • recordAll Link icon

      public static void recordAll(File dir)
      Does not register all MBeans but add them also as shutdown hook. So at the end of the program all collected dates are exported to the given directory
      Parameters:
      dir - directory where the dates are stored
    • recordAll Link icon

      public static void recordAll(URI base)
      Does not register all MBeans but add them also as shutdown hook. So at the end of the program all collected dates are exported to the given directory
      Parameters:
      base - URI where the statistic is stored
      Since:
      2.5