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

    Constructors
    Constructor
    Description
     
  • Method Summary

    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

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

    • Starter

      public Starter()
  • Method Details

    • start

      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

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

      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

      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

      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

      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

      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