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; }
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; }
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(); }