Changeset 2269 for trunk/java-client
- Timestamp:
- 2001-04-03T15:45:23+12:00 (23 years ago)
- Location:
- trunk/java-client/org/nzdl/gsdl
- Files:
-
- 1 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/org/nzdl/gsdl/Makefile
r2259 r2269 1 1 2 CLASSES = SimpleClient.class SimpleServer.class SearchAllCollections.class2 CLASSES = SimpleClient.class Proxy.class SearchAllCollections.class 3 3 4 4 all : subdirs $(CLASSES) -
trunk/java-client/org/nzdl/gsdl/service/NzdlMultiWayWrapper.java
r2220 r2269 76 76 if (NzdlPreferences.getBoolean("Log at the NzdlService level")) 77 77 server = new NzdlLogWrapper(server, 78 "log.file.after.split." + key + "cache",78 "log.file.after.split." + i + ".cache", 79 79 "AFTER:" + key + ": "); 80 80 services.put("" +i, server); … … 87 87 return result; 88 88 } 89 89 90 String findCollection(String _name) { 90 91 String result = ""; … … 117 118 public Set getCollectionSet( ) { 118 119 Set results = new HashSet(); 120 Hashtable intermediate = new Hashtable(); 119 121 120 122 Enumeration e = services.keys(); … … 126 128 while (s.hasNext()) { 127 129 String coll = (String) s.next(); 128 results.add("" + i + ":" + coll); 130 String collname = "" + i + ":" + coll; 131 boolean hit = false; 132 for (int j = 0; j < i; j++) { 133 String oldcollname = "" + j + ":" + coll; 134 if (intermediate.get(oldcollname) != null) { 135 136 NzdlService oldServer = (NzdlService) services.get( "" + j ); 137 NzdlCollectionInfo oldColl = oldServer.getCollectionInfo(coll); 138 NzdlCollectionInfo newColl = server.getCollectionInfo(coll); 139 140 if (oldColl.getBuildDate() == newColl.getBuildDate() && 141 oldColl.getNumOfDocs() == newColl.getNumOfDocs() && 142 oldColl.getNumOfWords() == newColl.getNumOfWords() && 143 oldColl.getNumOfBytes() == newColl.getNumOfBytes() && 144 oldColl.isPublic() == newColl.isPublic() ) 145 hit = true; 146 } 147 } 148 if (hit == false) { 149 intermediate.put(collname,collname); 150 results.add("" + i + ":" + coll); 151 } 129 152 } 130 153 } -
trunk/java-client/org/nzdl/gsdl/util/NzdlServiceFactory.java
r2220 r2269 348 348 Properties valid = new Properties(); 349 349 350 if (knownIORs != null)350 if (knownIORs == null) 351 351 throw new Error("saving null property list"); 352 352
Note:
See TracChangeset
for help on using the changeset viewer.