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 void
record()
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
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
Does not register all MBeans but add them also as shutdown hook.static void
start()
Registers all MBeans for monitoring the connection and SQL statements.static void
startAll()
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 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
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
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
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
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
-