try {
if(use_replicated_hashtable) {
ht=new ReplicatedHashtable("HashtableTest", new JChannelFactory(), props, 1000);
if(debug) {
debugger=new Debugger((JChannel)((ReplicatedHashtable)ht).getChannel(), cummulative);
}
((ReplicatedHashtable)ht).addNotifier(new Notifier(NUM_ITEMS));
}
else {
ht=new DistributedHashtable("HashtableTest", new JChannelFactory(), props, 1000);
if(debug) {
debugger=new Debugger((JChannel)((DistributedHashtable)ht).getChannel(), cummulative);
}
// ((DistributedHashtable)ht).addNotifier(new MyNotifier());
}