Click to See Complete Forum and Search --> : A. Cache Consistency Distributed Application


Tambo06
April 23rd, 2003, 10:14 PM
Design and write an application that maintains a consistent replicated cache. Each instance of the application will maintain a replicated cache of information, such that each instance of the application’s cache is identical. One may run many instances of the application and thus have many instances of the replicated and consistent cache. This project requires one to create an application that receives messages and places them in a cache (memory). It also requires that one write an application that generates cache entries and sends them to each instance of the application.

The application must be able to display the cache on the screen (a console application is fine) so that we can check for cache consistency. When a new message arrives from the data generating application, the information is to be added to the cache.

Can someone help?

Holiday
April 25th, 2003, 03:03 AM
You have to define your problem more precisely, not your whole task to do in your lecture.;)

Anyway, to replicate identical cache infos in each instance, you need a constructor with a reference param for all classes.

cache theCache;
public CONSTRUCTOR (ref cache){ theCache=cache;}

public cache getCache //let you return the cache
{
get{ return theCache;}
}