public override void LeftCluster(InstanceId instanceId, URI member) { if (_heartbeatContext.isFailedBasedOnSuspicions(instanceId)) { _log.warn("Instance " + instanceId + " (" + member + ") has left the cluster " + "but is still treated as failed by HeartbeatContext"); _heartbeatContext.serverLeftCluster(instanceId); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testSaneInitialState() public virtual void TestSaneInitialState() { // In config, not suspected yet assertFalse(_toTest.alive(_instanceIds[0])); // Not in config assertFalse(_toTest.alive(new InstanceId(4))); // By default, instances start off as alive assertEquals(_instanceIds.Length, Iterables.count(_toTest.Alive)); assertEquals(0, _toTest.Failed.Count); foreach (InstanceId initialHost in _instanceIds) { assertFalse(_toTest.isFailedBasedOnSuspicions(initialHost)); } }