示例#1
0
        /// <summary>
        /// Sets the GMS implementation to a participant
        /// </summary>
        public void becomeParticipant()
        {
            ParticipantGmsImpl tmp = (ParticipantGmsImpl)impls[PART];

            if (tmp == null)
            {
                tmp = new ParticipantGmsImpl(this);
                impls.Add(PART, tmp);
            }
            tmp.leaving = false;
            setImpl(tmp);
            if (Trace.trace)
            {
                Trace.info("GMS.becomeParticipant()", local_addr + " became participant");
            }
        }
示例#2
0
        /// <summary>
        /// Sets the GMS implementation to a participant
        /// </summary>
        public void becomeParticipant()
        {
            ParticipantGmsImpl tmp=(ParticipantGmsImpl)impls[PART];

            if(tmp == null)
            {
                tmp=new ParticipantGmsImpl(this);
                impls.Add(PART, tmp);
            }
            tmp.leaving=false;
            setImpl(tmp);
            if(Trace.trace) Trace.info("GMS.becomeParticipant()", local_addr + " became participant");
        }