Basic HTML version of Foils prepared May 19 1999

Foil 52 Visigenic Server Object Implementation 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


public class CountImpl extends Counter._CountImplBase {
private int sum;
public CountImpl(java.lang.String name) { // Construct a persistent object.
super(name); sum=0;
System.out.println("Count Object Created"); }
public CountImpl() { // Construct a transient object
super(); }
public int increment() { // Implementation of remote operation
sum++;
return sum; }
public void sum(int val) { // implement attribute writer...
sum = val; }
public int sum() { // implement attribute reader...
return sum; }
}



© 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