Merge DBConnection branch to head.
Merger DBConnect branch to head.
Merge branch to head.
This is code for testing how many sql commands one connection can be executed.
Change back to Connection. DBConnection will store in cvs branch..
Change back to Connection. DBConnection will store in a cvs branch.
Change back to using Connection. The DBConnection will be store in a cvs branch.
Change to using Connection back rather than DBConnection. DBConnection will be store in a cvs branch.
Add a new method commit.
Change the API for dbAdopter.
Change back to pass Connection a parameter.
Change back to pass connection as parameter.
Change back to pass connection as a parameter. Because new connection will cause an error.
Change back to pass connection as paramter in getUniqueID, otherwise new connection will cause a error: sequence XML_NODES_ID_SEQ.CURRVAL is not yet defined in this session
Add a new method - createStatement.
Correct the parameter of getDBConnection - methodName in code.
Change for every method to use getDBConnection and returnDBConnection to manage DBConnection.
Using getDBConenction rather than pass connection as parameter.
Using getDBConnection rather than pass connection as a parameter.
Using getDBConnection method rather than a parameter.
Change the prototype of method getUniqeID
Add DBConnectionPool object in servlet's init method and DBConnectionPool's release method in servlet's destory method.
Delete connection as a class field and make every method to check in and check out connection if it need.
Make a every method check in and check out DBConnection if this method need a connection.
In returnDBConnection method, a new parameter named serialNumber was added. It will compare to the checkOutSerialNumber in DBConnection.
Add a new attribute named checkOutSerialNumber, which to make sure when DBConnection would not be check in mutiple times.
Change some debug message.
Change package name of this class.
Change package name. Factor of docid change from 10000 to 100000.
Change package name and data file path. The factor for docid change from 10000 to 100000.
Change directories setting for junit test and junit nettest.
This is the data file for testing insert data file action.
This is a net test file for metacat.
Add to cvs
Add metacat test to cvs.
delete it
Change the file path from aboslute to relative.
Add the test case for inserting data file.
Add a set system peroperty -Djava.protocol.handler.pkgs=HTTPClient in nettest target.Fixed the bug in running ant in gethttpclient target.
This is is a text file will be inert into metacat for testing. The content is "Hello, world".
This is new package and its testcase will involve morpho httpmessage class to insert data file.
Add the test case to insert invalidate xml and non well-formed xml documents.
Add two targets in build file: gethttpclient and nettest. gethttpclient wil checkout morpho and ran ant get httpclient.jar(cvs doesn't have httpclient.jar). nettest will run a junit test which will involve httpclient.jar file.
Add the code to handle error in the respone for a update request.
Add test ssl work or not in handleUpdateRequest method too.
Change code to handle the error message.
Add error message to outPut in catch clause in handleGetDocument Request.
In update method, add code to handle if a user couldn't pass a trusting test.
Add a test action in replication. Before handle read and read data file action. Metacat will take a test to see if the trust key in key store. If not, wouldn't replicate documents.This is security issue.
Add debugMessage level in this class
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 a attribute named checkOutMethodName and relative method. This variable can keep track which mehod check out the DBConnection.
Add two variables here: one is runDBConnectionRecycleThread. If it set "on", the recycle connection tread will run periodically. The other is cycleTimeOfDBConnection. This is for the recycle periodical time in milli seconds.
Add some new methods into this class.
Add some new methods in this class.
Add some variables to control db connection.
Add some new methods in it. Remove openDBconnection part to DBConnection class.
Add some new attributes and methods in it.
Add a new class named DBConnectionPool. This class will create DBConnection pool and other user can get or return connection to it.
Add this new class into meta package. DBConnection class repsent a conncetion and its information.
Add some debug message in the code.
Add a variable named junittesturl there.
Add setCookie method in this class. Junit test class need this method.
Add test case for inert, read, update, delete xml documents and logout action too.
Add a access control for MetaCatServlet to update a document which home server is not local metacat.
Change datafilepath's value and it should equals the property value of datafilepath in build.xml.
Add a variable named datafilepath in it. MetaCat administrator should specify the absolute path for storing data file.
Add a control to accept data or not
Add two controls to send or accept data.
Add control to send data or not
Add two control for send or accept data file
Add two variables replicationsenddata and replicationacceptdata
Add two variables named replicationsenddata and replicationacceptdata. Metacat administrator can configure metacat can send or accepte or both to data file
In writeDocumentToDB method, during insert action, rev value can be assigned too. It is useful for replication.
Revised update method.
Add a control to get data file granted in handleUploadMethod.
Revised the method writeDataFile, writeReplication and writeToDB
Revise Update method.
Apply DocumentImp.writeReplication and DocumentImp.writeDataFile in deltaT replication
Fixed some db connection problem
Fixed some db connection bug.
Delete a some useless code for connection pool
Fixed some DB connection bug.
Assign debug level to parser. (it level is 50)
Use DocumentImpl.getDocHomeServer method to get home server in method handleGetDocumentInfo
Change the method getLocalReplicationServerName to be static
Add the feature to get doc home server into method getDocumentInfo.Add a method to return docHomeServer.
Fixed a bug in method getHomeServer
Revise the method getDocumentInfo. Home server of documnet is added in it.
Revised handleUploadRequet.
Add three methods into this class. One is named getServerCode, to given a server name, it return server code in xml_replication table.One named insertServerIntoReplicationTable, if a server is not in the server list, it will insert it.One is named WriteReplication, this method will be used in forceReplication. It delete the replication code in it.
Delete the control that when action="insert", rev should be 1
Overload a method debugMessage(String msg, int debugLevel)User can set a debugLevel for this message. If debugLevel is less than the default a value in build.xml, this message will be printed.If user set a value less than or equals 0, debugLevel will be set automatically to 1. So we can set default value to 0 in build.xml file and close all debug message.
Add a variable named debuglevel here. It control the differrent debug level message will be printed.
Add a property named debuglevel in it. This property will control the debug message. It set higher, more debug message will print out
This file now contaions login testing for nceas, pisco and lter ldap server. It includes both successful and failed login testing.More testing such as insert xml document and data file ... will coming.
Revise junit testing part and make it working.Delete the variables for httpclient.jar and junit.jar
This jar file can be deleted.