Ejemplo n.º 1
0
        /// <summary>
        /// Sets the GMS implementation to a coordinator
        /// </summary>
        public void becomeCoordinator()
        {
            CoordGmsImpl tmp = (CoordGmsImpl)impls[COORD];

            if (tmp == null)
            {
                tmp = new CoordGmsImpl(this);
                impls.Add(COORD, tmp);
            }
            tmp.leaving = false;
            setImpl(tmp);
            if (Trace.trace)
            {
                Trace.info("GMS.becomeCoordinator()", local_addr + " became coordinator");
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Sets the GMS implementation to a coordinator
        /// </summary>
        public void becomeCoordinator()
        {
            CoordGmsImpl tmp=(CoordGmsImpl)impls[COORD];

            if(tmp == null)
            {
                tmp=new CoordGmsImpl(this);
                impls.Add(COORD, tmp);
            }
            tmp.leaving=false;
            setImpl(tmp);
            if(Trace.trace) Trace.info("GMS.becomeCoordinator()", local_addr + " became coordinator");
        }