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 two methods getHomeServer and getServerLocation. Given a docid, getHomeServer can get the information of its home host. Given a docid, getServerLocation can return server code for it.
In handleUpdateRequest method, if a metacat was configured to be hub super, it can provide any documents in its database. If the metacat is notsuper, it only provide the documents list which home host is itself.
Adding a hub control to data file in handleUpLoad method. Data file was changed can be replicate to all server or only home host.
Add a hashtable - server list as a class variable. So programmer have a control to the server list which will be forced to replicate.
Add a hub control in write and writeData method. If hub==super, metacat can replicate any document in its database to any server in server list. If it is not super, metacat only replicate local documents to any server in server list. If a document' home host is not itself, metacat only force replicate the document to the document's home host.
In update method, adding some code to handle replicate data file. Fixed the bug in deleting documents.
Making parser to handle datafile attribute in parsing updated doclist.
Add a new attribute in updated doc list: data file. So from this attribute, we can tell which document is a data file.
In writeDataFile method, using getDataFileLockGrant(docid) replace getDataFileLockGrant(docid, serverCode). The latter will cause a problem
View revisions
Also available in: Atom