//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>();
        }
Esempio n. 2
0
        public bool Init()
        {
            masterService = new MasterService("tcp://localhost:8080/Master");
            coordinatorService = new CoordinatorService(masterService);
            //timestampService = new TimestampService();
            debugService = new DebugService(masterService);

            return true;
        }
Esempio n. 3
0
        //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>();
        }
Esempio n. 4
0
 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;
 }
Esempio n. 5
0
 public LookupService(MasterService masterEndpointService)
 {
     masterService = masterEndpointService;
     master        = masterService.Master;
 }
Esempio n. 6
0
 public LookupService(MasterService masterEndpointService)
 {
     masterService = masterEndpointService;
     master = masterService.Master;
 }
Esempio n. 7
0
 public DebugService(MasterService masterS)
 {
     masterService = masterS;
 }
Esempio n. 8
0
 public DebugService(MasterService masterS)
 {
     masterService = masterS;
 }