Beispiel #1
0
        // Tell master the server failed
        public static bool Fail(string url)
        {
            ILibraryComm master = (ILibraryComm)Activator.GetObject(typeof(ILibraryComm), _master_url + "LibraryComm");

            master.fail(url);
            return(true);
        }
Beispiel #2
0
        // Tell Master to kill the server
        internal void onTimeFail(object source, ElapsedEventArgs e, string server_url)
        {
            Console.WriteLine("Server " + server_url + " Died!");
            _timer.Enabled   = false;
            _timer.AutoReset = false;

            ILibraryComm master = (ILibraryComm)Activator.GetObject(
                typeof(ILibraryComm), PadiDstm.Master_Url + "LibraryComm");

            failed_lock = true;

            master.fail(server_url);
            State = TransactionState.ABORTED;

            PadiDstm.Servers.updateCache();
            failed_lock = false;
        }