コード例 #1
0
 private void Handle(SystemMessage.BecomePreMaster message)
 {
     Log.Info("========== [{0}] PRE-MASTER STATE, WAITING FOR CHASER TO CATCH UP...", _httpEndPoint);
     _state = VNodeState.PreMaster;
     _mainQueue.Publish(new SystemMessage.WaitForChaserToCatchUp(Guid.NewGuid(), TimeSpan.Zero));
     _outputBus.Publish(message);
 }
コード例 #2
0
        private void Handle(SystemMessage.BecomePreMaster message)
        {
            if (_master == null)
            {
                throw new Exception("_master == null");
            }
            if (_stateCorrelationId != message.CorrelationId)
            {
                return;
            }

            Log.Info("========== [{0}] PRE-MASTER STATE, WAITING FOR CHASER TO CATCH UP...", _nodeInfo.InternalHttp);
            _state = VNodeState.PreMaster;
            _outputBus.Publish(message);
            _mainQueue.Publish(new SystemMessage.WaitForChaserToCatchUp(_stateCorrelationId, TimeSpan.Zero));
        }