Class JdbcStarter

java.lang.Object
clazzfish.jdbc.JdbcStarter

public final class JdbcStarter extends Object
The JdbcStarter class loads automatically the Monitor and Statistic classes.
Since:
2.3 (20.12.24)
Author:
oboehm
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Does not register all MBeans but add them also as shutdown hook.
    static void
    record(File dir)
    Does not register all MBeans but add them also as shutdown hook.
    static void
    record(URI base)
    Does not register all MBeans but add them also as shutdown hook.
    static void
    Registers all MBeans of jdbc module but also the statistic MBean of monitor module 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 connection and SQL statements.
    static void
    Registers all MBeans of jdbc module but also all MBeans of monitor module.

    Methods inherited from class java.lang.Object

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

    • JdbcStarter

      public JdbcStarter()
  • Method Details

    • start

      public static void start()
      Registers all MBeans for monitoring the connection and SQL statements.
    • startAll

      public static void startAll()
      Registers all MBeans of jdbc module but also all MBeans of monitor module.
    • record

      public static void record()
      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 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
    • record

      public static void record(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 base URI.
      Parameters:
      base - URI where the dates are stored
      Since:
      2.5
    • recordAll

      public static void recordAll()
      Registers all MBeans of jdbc module but also the statistic MBean of monitor module as shutdown hook. This means at the end of the program all alll statistic dates of the different modules are exported.

      If you want to export ALL dates including the dates of the monitor MBeans you have to call

      • Starter.recordAll()
      • JdbcStarter.record()
    • 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 base URI.
      Parameters:
      base - URI where the dates are stored
      Since:
      2.5