psdi.util

Class MXDbPing

  • java.lang.Object
    • psdi.util.MXDbPing


  • public class MXDbPing
    extends java.lang.Object
    Utility to test the database connection. By default it reads information from MXServer.properties.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected static java.lang.String database
      Url of the database to connect to
      protected static java.lang.String dbalias 
      protected static java.sql.Driver driver
      get's initialized by connect() method
      protected static java.util.Properties mxServerConfig
      Configuration information as an extension of java.util.Properties
      protected static java.lang.String password 
      protected static java.lang.String propFileDefault
      The name of the file to read configuation information from.
      protected java.lang.String propFileName
      The Properties filename can be passed in via a constructor.
      protected static java.lang.String url 
      protected static java.lang.String user 
    • Constructor Summary

      Constructors 
      Constructor and Description
      MXDbPing()
      Constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected void configure(java.lang.String filename)
      Reads in the MXServer.properties file.
      static void main(java.lang.String[] argv)
      Main
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • propFileDefault

        protected static final java.lang.String propFileDefault
        The name of the file to read configuation information from. This is overridden by a command line argument.
        See Also:
        Constant Field Values
      • mxServerConfig

        protected static java.util.Properties mxServerConfig
        Configuration information as an extension of java.util.Properties
      • propFileName

        protected java.lang.String propFileName
        The Properties filename can be passed in via a constructor. The default value is "MXServer.properties".
      • driver

        protected static java.sql.Driver driver
        get's initialized by connect() method
      • database

        protected static java.lang.String database
        Url of the database to connect to
      • dbalias

        protected static java.lang.String dbalias
      • url

        protected static java.lang.String url
      • user

        protected static java.lang.String user
      • password

        protected static java.lang.String password
    • Constructor Detail

      • MXDbPing

        public MXDbPing()
        Constructor
    • Method Detail

      • configure

        protected void configure(java.lang.String filename)
        Reads in the MXServer.properties file.
      • main

        public static void main(java.lang.String[] argv)
        Main