Basic HTML version of Foils prepared May 19 1999

Foil 55 Fragment of Main Client Program Code

From CORBA Common Object Request Broker Architecture Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Geoffrey Fox, Wojtek Furmanski, Nancy McCracken, Chao-Wei Ou, Shrideep Pallickara


1 public class
2 CountClient extends Applet {
3 ................... Method to Initialize ....................
4 private void connectToCountObject() {
5 // Initialize the ORB.
6 org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(this);
7 // Calculate Start time
8 long startTime = System.currentTimeMillis();
9 counter = Counter.CountHelper.bind(orb, "Counter");
10 long stopTime = System.currentTimeMillis();
11 System.out.println("Avg time to setup Orblet = "
12 + ((stopTime - startTime)/1000f) + " secs");
13 }
14 }

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999