psdi.server

Class DbConnectionWatchDog

  • java.lang.Object
    • java.util.TimerTask
      • psdi.server.DbConnectionWatchDog
  • All Implemented Interfaces:
    java.lang.Runnable, FixedLoggerNames, FixedLoggers


    public class DbConnectionWatchDog
    extends java.util.TimerTask
    implements FixedLoggers
    This class monitors the open db connections and it detects and logs connections that were not closed for more than 60 seconds or that were closed by the garbage collector finalizer.
    • Constructor Detail

      • DbConnectionWatchDog

        public DbConnectionWatchDog()
    • Method Detail

      • getWatchDogConnectionData

        public static java.util.Map getWatchDogConnectionData()
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class java.util.TimerTask
      • addConnection

        public static void addConnection(int conRefId,
                                         java.lang.String SPID)
      • printCreationStackIfAvailable

        public static java.lang.String printCreationStackIfAvailable(int conRefId,
                                                                     java.lang.String SPID)
      • closeConnection

        public static void closeConnection(int conRefId)
      • log

        public static void log(java.lang.String optionalMessage)
      • log

        public static void log(java.lang.String optionalMessage,
                               boolean openConnectionsAreErrors,
                               boolean sendMail)
      • printDBManagerLog

        public static void printDBManagerLog()