Ejemplo n.º 1
0
        public void StartProgram(string[] args)
        {
            if (args.Length < 4)
            {
                Console.WriteLine("this program needs 4 arguments <server_id>, <URL>, <Min_delay>  and <Max_delay>");
                return;
            }
            string server_id = args[0];

            SetServerId(server_id);

            String url = args[1];

            int min_delay = int.Parse(args[2]);
            int max_delay = int.Parse(args[3]);

            server = new ServerImp(server_id, url, min_delay, max_delay);
            server.init_servers();


            Console.WriteLine("I'm ready to work");

            if (debug_console)
            {
                Console.WriteLine("serverID= " + server_id + "; url= " + url + "; min_delay= " + min_delay + "; max_delay= " + max_delay);
            }
        }
 public ServerCommunicationLogic(ServerImp server)
 {
     this.server = server;
 }
 public SendValueToReplica(ServerImp server, WriteRequest request)
 {
     this.server  = server;
     this.request = request;
 }
 public DataStoreServiceImpl(ServerImp server)
 {
     this.server = server;
 }
 public SendValueToReplica(ServerImp server)
 {
     this.server = server;
 }