Modifications to support the DataONE service API version 0.1.0. For DataONE, the get() andcreate() services are partially complete. Several more functions and checks need to be added tocreate() before it is viable. This DataONE support is not complete, and the current support breaks the MetacatRestClientTest for the time being (this client will eventually be removed).
log connection warnings only when thresholds are exceeded. Add method names to log output
Change location of PropertyService to properties directory
Create database and shared directories for database management code and shared code respectively.
Change some info log statements to debug
Fix error where maxconnectionnumber was being read into maxconnectionage.
Merge 1.9 changes into Head
Eliminated the MetacatUtil.printMessage() method in favor of using the Log4J debugging methods.
Removed the release ant token from all files in 'src'.
release
Moved printMessage statements to inside the if loop so that they are not printed each time getInstance is called
Modified the WARNing message
Modified the debug levels of debug statements
Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call
Checked to be sure the instance has been initialized in the getDBCOnnectionstatic method call. Assuming it has been initialized could (and does)lead to NullPointerExceptions when used outside of the metacat servletif the conneciton pool isn't initialized properly.
If db pool size is maxium and no connection is free. The checkout will be wait.
Change debug level.
Change some debug level
Chage the debug level for display the free connection number.
Add code to make sure that a DBConnection checked out is auto commit.
Add a new method shrinkConnectionPoolSize .
Add a new method to shrink DBConnection pool size.
Merge DBConnection branch to head.
In returnDBConnection method, a new parameter named serialNumber was added. It will compare to the checkOutSerialNumber in DBConnection.
Add a method getDBConnection. In this method, method name of method which checked out the connection can be passed to DBConnection object. In run() method, if a connection is checked out for too long (30 seconds), the method name and connection name will be print out.
Add some new methods into this class.
Add some new methods in it. Remove openDBconnection part to DBConnection class.
Add a new class named DBConnectionPool. This class will create DBConnection pool and other user can get or return connection to it.