Changeset 2157 for trunk/java-client
- Timestamp:
- 2001-03-11T23:58:37+13:00 (23 years ago)
- Location:
- trunk/java-client
- Files:
-
- 4 added
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/Makefile
r2155 r2157 40 40 41 41 clean : 42 rm -f log.file.* 43 rm -f knownIORs.properties 42 44 (cd gnu/getopt && $(MAKE) clean) 43 45 (cd org/nzdl/gsdl && $(MAKE) clean) -
trunk/java-client/README
r2097 r2157 9 9 David Bainbridge <[email protected]> 10 10 Dave Nichols <[email protected]>, 11 Brett Sheeran <[email protected]> 11 Brett Sheeran <[email protected]> (bas6 in the cvs log) 12 12 Stuart Yeates <[email protected]> 13 13 -
trunk/java-client/org/nzdl/gsdl/Makefile
r2143 r2157 6 6 7 7 subdirs : 8 (cd service && $(MAKE) all) 9 (cd util && $(MAKE) all) 10 (cd ptp && $(MAKE) all) 8 11 (cd SimpleGraphicalClient && $(MAKE) all) 9 (cd util && $(MAKE) all)10 (cd service && $(MAKE) all)11 (cd ptp && $(MAKE) all)12 12 13 13 clean: -
trunk/java-client/org/nzdl/gsdl/ptp/Makefile
r2119 r2157 25 25 clean: 26 26 rm -f *.class 27 rm -f *.html28 27 29 28 -
trunk/java-client/org/nzdl/gsdl/service/Makefile
r2151 r2157 22 22 NzdlServiceClient.class \ 23 23 NzdlServiceServer.class \ 24 NzdlServiceCachingClient.class 24 NzdlWrapper.class \ 25 NzdlLogWrapper.class \ 26 NzdlDocSaveWrapper.class \ 27 NzdlCacheWrapper.class 25 28 26 29 … … 29 32 clean: 30 33 rm -f *.class 31 rm -f *.html32 34 33 35 -
trunk/java-client/org/nzdl/gsdl/service/NzdlServiceClient.java
r2155 r2157 21 21 package org.nzdl.gsdl.service; 22 22 23 import java.io.*; 24 import java.util.*; 23 //import java.io.*; 24 //import java.util.*; 25 import java.util.Map; 26 import java.util.Set; 27 import java.util.List; 28 import java.util.HashSet; 29 import java.util.Properties; 30 25 31 /* jdk 1.3 orb */ 26 import org.omg.CORBA. *;32 import org.omg.CORBA.ORB; 27 33 /* gsdl corba stuff */ 28 34 import org.nzdl.gsdl.corba.gsdlInterface.*; -
trunk/java-client/org/nzdl/gsdl/util/Makefile
r2135 r2157 22 22 clean: 23 23 rm -f *.class 24 rm -f *.html25 24 26 25 -
trunk/java-client/org/nzdl/gsdl/util/NzdlIORs.java
r2152 r2157 57 57 import org.nzdl.gsdl.service.NzdlService; 58 58 import org.nzdl.gsdl.service.NzdlServiceClient; 59 import org.nzdl.gsdl.service.NzdlServiceCachingClient; 59 import org.nzdl.gsdl.service.NzdlCacheWrapper; 60 import org.nzdl.gsdl.service.NzdlLogWrapper; 61 import org.nzdl.gsdl.service.NzdlDocSaveWrapper; 60 62 61 63 /** … … 100 102 101 103 /** Are we using a caching NzdlService ? */ 102 static public boolean nzdlServiceCachingClass = true; 104 static public boolean caching = true; 105 /** Are we logging before the cache ? */ 106 static public boolean logBefore = true; 107 /** Are we logging after the cache ? */ 108 static public boolean logAfter = true; 109 /** Are we saving documents ? */ 110 static public boolean saveDocs = true; 103 111 104 112 /** … … 186 194 * @see org.omg.CORBA.ORB 187 195 */ 188 public static NzdlService ClientfindIOR(String [] _args,189 190 191 196 public static NzdlService findIOR(String [] _args, 197 String _URL, 198 String _filename, 199 String _IOR) { 192 200 193 201 // read our prevously seed IORs ... 194 202 String IOR = null; 195 NzdlService Clientclient = null;203 NzdlService client = null; 196 204 197 205 // try a URL from the command line … … 376 384 * @return the newly created NzdlServiceClient 377 385 */ 378 static public NzdlService ClientattemptToInitialise(String [] _args,386 static public NzdlService attemptToInitialise(String [] _args, 379 387 Properties _props, 380 388 String _IOR) { 381 389 checkLoaded(); 382 NzdlService Clientnzdl = null;390 NzdlService nzdl = null; 383 391 try { 384 if (nzdlServiceCachingClass) 385 nzdl = new NzdlServiceCachingClient( _args, _props, _IOR); 386 else 387 nzdl = new NzdlServiceClient( _args, _props, _IOR); 392 nzdl = new NzdlServiceClient( _args, _props, _IOR); 388 393 } catch (Throwable t) { 389 394 System.err.println ("failed to initialise using:"); … … 391 396 return null; 392 397 } 398 if (saveDocs) 399 nzdl = new NzdlDocSaveWrapper(nzdl); 400 401 if (logAfter) 402 nzdl = new NzdlLogWrapper(nzdl, "log.file.after.cache", "AFTER: "); 403 404 if (caching) 405 nzdl = new NzdlCacheWrapper(nzdl); 406 407 if (logBefore) 408 nzdl = new NzdlLogWrapper(nzdl, "log.file.before.cache", "BEFORE: "); 393 409 return nzdl; 394 410 }
Note:
See TracChangeset
for help on using the changeset viewer.