//saber quem tem int //private Dictionary<int, String> ServersEndpoint;//vao haver colisões //private Dictionary<int, IServer> uidServerRefAssociation; //private Dictionary<int, String> uidServerAssociation = new Dictionary<int, String>(); public CoordinatorService(MasterService masterS) { masterService = masterS; //???!!! lookupService = new LookupService(masterService); //uidServerAssociation = new Dictionary<int, String>(); //uidServerRefAssociation = new Dictionary<int, IServer>(); }
public bool Init() { masterService = new MasterService("tcp://localhost:8080/Master"); coordinatorService = new CoordinatorService(masterService); //timestampService = new TimestampService(); debugService = new DebugService(masterService); return true; }
public static bool Init() { try { masterService = new MasterService("tcp://localhost:8080/Master"); coordinatorService = new CoordinatorService(masterService); //timestampService = new TimestampService(); debugService = new DebugService(masterService); } catch (Exception e) { Console.WriteLine(e.Message); return false; } return true; }
public LookupService(MasterService masterEndpointService) { masterService = masterEndpointService; master = masterService.Master; }
public DebugService(MasterService masterS) { masterService = masterS; }