Exemple #1
0
 public TSpaceAdvManager(String url, int _mindelay, int _maxdelay)
 {
     Console.WriteLine("I am" + " " + url);
     MinDelay          = _mindelay;
     MaxDelay          = _maxdelay;
     TSpace            = new TSpaceStorage();
     ServerID          = new Random().Next();
     ProcessedRequests = new TSLog();
     URL = url;
 }
Exemple #2
0
 public TSpaceAdvManager(String url, int _mindelay, int _maxdelay, View view)
 {
     Console.WriteLine("Starting server " + url + "...");
     MinDelay          = _mindelay;
     MaxDelay          = _maxdelay;
     TSpace            = new TSpaceStorage();
     ServerID          = new Random().Next();
     ProcessedRequests = new TSLog();
     ServerView        = view;
     ServerView.Add(url);
     ServerView.ID++;
     URL = url;
 }
Exemple #3
0
 public TSpaceManager(String url, int _mindelay, int _maxdelay, View view)
 {
     Console.WriteLine(" I am" + " " + url);
     MinDelay          = _mindelay;
     MaxDelay          = _maxdelay;
     TSpace            = new TSpaceStorage();
     ServerID          = new Random().Next();
     ProcessedRequests = new TSLog();
     ServerView        = view;
     ServerView.Add(url);
     ServerView.ID++;
     URL = url;
     InitUpdateViewTimer();
 }