Changeset 2220
- Timestamp:
- 2001-03-22T15:48:52+12:00 (23 years ago)
- Location:
- trunk/java-client
- Files:
-
- 6 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/Makefile
r2187 r2220 24 24 25 25 org/nzdl/gsdl/corba/gsdlInterface/corbaiface.java : corbaiface.idl 26 idlj -fclient -pkgPrefix gsdlInterface org.nzdl.gsdl.corba corbaiface.idl27 idlj -fserver -pkgPrefix gsdlInterface org.nzdl.gsdl.corba corbaiface.idl26 idlj -verbose -fclient -pkgPrefix gsdlInterface org.nzdl.gsdl.corba corbaiface.idl 27 idlj -verbose -fserver -pkgPrefix gsdlInterface org.nzdl.gsdl.corba corbaiface.idl 28 28 javac org/nzdl/gsdl/corba/gsdlInterface/*.java 29 29 -
trunk/java-client/org/nzdl/gsdl/Makefile
r2191 r2220 10 10 (cd util && $(MAKE) all) 11 11 (cd ptp && $(MAKE) all) 12 (cd hli && $(MAKE) all) 12 13 (cd SimpleGraphicalClient && $(MAKE) all) 13 14 … … 17 18 (cd util && $(MAKE) clean) 18 19 (cd service && $(MAKE) clean) 20 (cd hli && $(MAKE) clean) 19 21 (cd ptp && $(MAKE) clean) 20 22 rm -f *.class -
trunk/java-client/org/nzdl/gsdl/SimpleClient.java
r2216 r2220 216 216 System.out.println("Searching collection: " + collName); 217 217 218 intnumResults = collInfo.getNumOfDocs(); // what precisely is this number ?218 long numResults = collInfo.getNumOfDocs(); // what precisely is this number ? 219 219 220 220 if (verbosity > 2) -
trunk/java-client/org/nzdl/gsdl/service/NzdlCollectionInfo.java
r2196 r2220 139 139 * @return An integer representing the number of documents in the collection. 140 140 */ 141 public intgetNumOfDocs() {141 public long getNumOfDocs() { 142 142 return m_Info.numDocs; 143 143 } … … 150 150 * @return An integer representing the number of words in the collection. 151 151 */ 152 public intgetNumOfWords() {152 public long getNumOfWords() { 153 153 return m_Info.numWords; 154 154 } … … 161 161 * @return An integer representing the number of bytes in the collection. 162 162 */ 163 public intgetNumOfBytes() {163 public long getNumOfBytes() { 164 164 return m_Info.numBytes; 165 165 } -
trunk/java-client/org/nzdl/gsdl/service/NzdlLogWrapper.java
r2162 r2220 71 71 } 72 72 } 73 73 74 74 protected void logBefore(String method) { 75 75 if (whenCallStarted != null) -
trunk/java-client/org/nzdl/gsdl/service/NzdlMultiWayWrapper.java
r2188 r2220 97 97 return result; 98 98 } 99 99 100 100 /** 101 101 * Allow the client to configure a CORBA server. -
trunk/java-client/org/nzdl/gsdl/service/NzdlServiceClient.java
r2202 r2220 95 95 } 96 96 97 97 98 /** 98 99 * Allow the client to configure a CORBA server. -
trunk/java-client/org/nzdl/gsdl/util/NzdlServiceFactory.java
r2217 r2220 300 300 } 301 301 302 System.err.println("1");303 302 // try an IOR from the command line 304 303 if (_IOR != null) { … … 309 308 } 310 309 311 System.err.println("2");312 310 // try an IOR from a file (the filename may have been 313 311 // given from the commandline … … 321 319 } 322 320 323 System.err.println("3");324 321 // try the compiled-in URLs 325 322 for (int i=0;(urlsCompiledIn != null && i<urlsCompiledIn.length);i++) { … … 332 329 } 333 330 334 System.err.println("4");335 331 // the knownIORs is the last resort 336 332 IOR = NzdlServiceFactory.getFirstValid(); … … 546 542 return nzdl; 547 543 } 548 544 static public NzdlService createNzdlService(String _IOR) { 545 Properties _props = System.getProperties(); 546 547 NzdlService nzdl = null; 548 String IOR = null; 549 550 IOR = NzdlServiceFactory.registerIOR(_IOR); 551 nzdl = attemptToInitialise(null, _props, IOR); 552 553 if (nzdl == null) { 554 System.err.println("couldn't open the requested IOR: going for what we can ..."); 555 nzdl = createNzdlService(null,null,null,null,null); 556 } 557 558 559 if (NzdlPreferences.getBoolean("Save documents")) 560 nzdl = new NzdlDocSaveWrapper(nzdl); 561 562 if (NzdlPreferences.getBoolean("Log at the NzdlService level")) 563 nzdl = new NzdlLogWrapper(nzdl, "log.file.after.cache", "AFTER: "); 564 565 if (NzdlPreferences.getBoolean("Cache corba requests")) 566 nzdl = new NzdlCacheWrapper(nzdl); 567 568 if (NzdlPreferences.getBoolean("Log at the NzdlService level")) 569 nzdl = new NzdlLogWrapper(nzdl, "log.file.before.cache", "BEFORE: "); 570 571 return nzdl; 572 } 573 549 574 /** 550 575 * Write the System properties to a file called "System.properties" in
Note:
See TracChangeset
for help on using the changeset viewer.