Add measurement of execution time for servlets
[jabaws.git] / webservices / compbio / stat / collector / StatDB.java
index 3af1b14..32b7fde 100644 (file)
@@ -67,11 +67,6 @@ public class StatDB {
                                conn = DriverManager.getConnection(protocol + statDBName + ";create=false");\r
 \r
                                conn.setAutoCommit(true);\r
-                               /*\r
-                                * Runtime.getRuntime().addShutdownHook(new Thread() {\r
-                                * \r
-                                * @Override public void run() { shutdownDBServer(); } });\r
-                                */\r
                        } catch (ClassNotFoundException e) {\r
                                log.error(e.getMessage(), e);\r
                        }\r
@@ -111,11 +106,8 @@ public class StatDB {
         * @throws SQLException\r
         */\r
        private void createStatTable() throws SQLException {\r
-\r
-               /*\r
-                * Creating a statement object that we can use for running various SQL\r
-                * statements commands against the database.\r
-                */\r
+               // Creating a statement object that we can use for running various SQL\r
+               // statements commands against the database.\r
                Statement s = conn.createStatement();\r
                String create = "create table exec_stat("\r
                                + "number INT GENERATED ALWAYS AS IDENTITY,"\r
@@ -199,7 +191,6 @@ public class StatDB {
                if (exist) {\r
                        date = res.getDate(1);\r
                }\r
-\r
                res.close();\r
                st.close();\r
                return date;\r