public GetClusterSettings ( int selfIndex, int nodesCount ) : EventStore.Core.Tests.Services.ElectionsService.ClusterSettings | ||
selfIndex | int | |
nodesCount | int | |
Результат | EventStore.Core.Tests.Services.ElectionsService.ClusterSettings |
public void SetUp() { var clusterSettingsFactory = new ClusterSettingsFactory(); var clusterSettings = clusterSettingsFactory.GetClusterSettings(1, 3, false); _electionsUnit = new ElectionsServiceUnit(clusterSettings); ProcessElections(); }
public void SetUp() { var clusterSettingsFactory = new ClusterSettingsFactory(); var clusterSettings = clusterSettingsFactory.GetClusterSettings(1, 3); _electionsUnit = new ElectionsServiceUnit(clusterSettings); ProcessElections(); }
public void SetUp() { var clusterSettings = ClusterSettingsFactory.GetClusterSettings(1, 3, false); _electionsUnit = new ElectionsServiceUnit(clusterSettings); _electionsUnit.UpdateClusterMemberInfo(0, isAlive: false); _electionsUnit.UpdateClusterMemberInfo(2, isAlive: false); _electionsUnit.UpdateClusterMemberInfo(3, isAlive: false); ProcessElections(); }
public void SetUp() { var clusterSettingsFactory = new ClusterSettingsFactory(); var clusterSettings = clusterSettingsFactory.GetClusterSettings(1, 4, true); _electionsUnit = new ElectionsServiceUnit(clusterSettings); _electionsUnit.UpdateClusterMemberInfo(0, isAlive: true); _electionsUnit.UpdateClusterMemberInfo(1, isAlive: true); // Kill the other two nodes in the cluster _electionsUnit.UpdateClusterMemberInfo(2, isAlive: false); _electionsUnit.UpdateClusterMemberInfo(3, isAlive: false); StartElections(); }
public void SetUp() { var clusterSettingsFactory = new ClusterSettingsFactory(); var clusterSettings = clusterSettingsFactory.GetClusterSettings(1, 3); _electionsUnit = new ElectionsServiceUnit(clusterSettings); _electionsUnit.UpdateClusterMemberInfo(0, isAlive: false); _electionsUnit.UpdateClusterMemberInfo(2, isAlive: false); _electionsUnit.UpdateClusterMemberInfo(3, isAlive: false); ProcessElections(); }