Class JdbcStarter
java.lang.Object
clazzfish.jdbc.JdbcStarter
The JdbcStarter class loads automatically the Monitor and Statistic
classes.
- Since:
- 2.3 (20.12.24)
- Author:
- oboehm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrecord()Does not register all MBeans but add them also as shutdown hook.static voidDoes not register all MBeans but add them also as shutdown hook.static voidRegister all MBeans and add them also as shutdown hook.static voidRegisters all MBeans of jdbc module but also the statistic MBean of monitor module as shutdown hook.static voidDoes not register all MBeans but add them also as shutdown hook.static voidDoes not register all MBeans but add them also as shutdown hook.static voidstart()Registers the MBeans for monitoring the connection.static voidstartAll()Registers all MBeans of jdbc module but also all MBeans of monitor module.
-
Constructor Details
-
JdbcStarter
public JdbcStarter()
-
-
Method Details
-
start
public static void start()Registers the MBeans for monitoring the connection. -
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 to "SqlStatistic.csv". -
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 to the given directory.- Parameters:
dir- directory where the dates are stored
-
record
Register all MBeans and add them also as shutdown hook. So at the end of the program all collected dates are exported to the base URI into "SqlStatistic.csv".- 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 all statistic dates of the different modules are exported (into "ClazzStatistic.csv" and "SqlStatistic.csv".If you want to export ALL dates including the dates of the monitor MBeans you have to call
- Starter.recordAll()
- JdbcStarter.record()
-
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 to the given directory (to "SqlStatistic.csv" and "ClazzStatistic.csv").- Parameters:
dir- directory where the dates are stored
-
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 to the base URI (into "SqlStatistic.csv" and "ClazzStatistic.csv").- Parameters:
base- URI where the dates are stored- Since:
- 2.5
-