Project

General

Profile

« Previous | Next » 

Revision 3078

Added by Matt Jones over 17 years ago

Eliminated the MetacatUtil.printMessage() method in favor of using the Log4J debugging methods.

View differences:

DBConnectionPool.java
96 96
  {
97 97
    if (instance == null) {
98 98
      instance = new DBConnectionPool();
99
      MetaCatUtil.printMessage
100
      	("MaximumConnectionNumber: "+MAXIMUMCONNECTIONNUMBER);
101
      MetaCatUtil.printMessage
102
      	("Intial connection number: "+INITIALCONNECTIONNUMBER);
103
      MetaCatUtil.printMessage
104
      	("Increated connection Number: "+INCREASECONNECTIONNUMBER);
105
      MetaCatUtil.printMessage
106
      	("Maximum connection age: "+MAXIMUMAGE);
107
      MetaCatUtil.printMessage
108
      	("Maximum connection time: "+MAXIMUMCONNECTIONTIME);
109
      MetaCatUtil.printMessage
110
      	("Maximum usage count: "+MAXIMUMUSAGENUMBER);
111
      MetaCatUtil.printMessage
112
      	("Running recycle thread or not: "+DBCONNECTIONRECYCLETHREAD);
113
      MetaCatUtil.printMessage
114
      	("Cycle time of recycle: "+CYCLETIMEOFDBCONNECTION); 
99
      Logger log = Logger.getLogger(DBConnectionPool.class);
100
      log.info("MaximumConnectionNumber: "+MAXIMUMCONNECTIONNUMBER);
101
      log.info("Intial connection number: "+INITIALCONNECTIONNUMBER);
102
      log.info("Increated connection Number: "+INCREASECONNECTIONNUMBER);
103
      log.info("Maximum connection age: "+MAXIMUMAGE);
104
      log.info("Maximum connection time: "+MAXIMUMCONNECTIONTIME);
105
      log.info("Maximum usage count: "+MAXIMUMUSAGENUMBER);
106
      log.info("Running recycle thread or not: "+DBCONNECTIONRECYCLETHREAD);
107
      log.info("Cycle time of recycle: "+CYCLETIMEOFDBCONNECTION); 
115 108
    }
116 109
    return instance;
117
  }//getInstance
110
  }
118 111

  
119 112

  
120 113
  /**

Also available in: Unified diff