Esempio n. 1
0
            public PrepareOkDto(ElectionMessage.PrepareOk message)
            {
                ServerId = message.ServerId;
                ServerInternalHttpAddress = message.ServerInternalHttp.Address.ToString();
                ServerInternalHttpPort    = message.ServerInternalHttp.Port;

                View = message.View;

                EpochNumber        = message.EpochNumber;
                EpochPosition      = message.EpochPosition;
                EpochId            = message.EpochId;
                LastCommitPosition = message.LastCommitPosition;
                WriterCheckpoint   = message.WriterCheckpoint;
                ChaserCheckpoint   = message.ChaserCheckpoint;

                NodePriority = message.NodePriority;
            }
Esempio n. 2
0
            public PrepareOkDto(ElectionMessage.PrepareOk message)
            {
                ServerId          = message.ServerId;
                ServerHttpAddress = message.ServerHttpEndPoint.GetHost();
                ServerHttpPort    = message.ServerHttpEndPoint.GetPort();

                View = message.View;

                EpochNumber        = message.EpochNumber;
                EpochPosition      = message.EpochPosition;
                EpochId            = message.EpochId;
                LastCommitPosition = message.LastCommitPosition;
                WriterCheckpoint   = message.WriterCheckpoint;
                ChaserCheckpoint   = message.ChaserCheckpoint;

                NodePriority = message.NodePriority;
            }