@Test public void testCheckOtherDcRedis() { Mockito.when(info.getDcId()).thenReturn("remote-dc"); Assert.assertFalse(controller.shouldCheck(instance)); }
public boolean shouldCheck(RedisHealthCheckInstance instance) { RedisInstanceInfo info = instance.getRedisInstanceInfo(); return super.shouldCheck(instance) && !(getRedisCntInCurrentDc(info.getClusterId(), info.getShardId()) > 1 && info.isMaster()); }
CurrentDcSentinelCheckController extends CurrentDcCheckController implements SentinelActionController, BiDirectionSupport { public boolean shouldCheck(RedisHealthCheckInstance instance) { RedisInstanceInfo info = instance.getRedisInstanceInfo(); return super.shouldCheck(instance) && !(getRedisCntInCurrentDc(info.getClusterId(), info.getShardId()) > 1 && info.isMaster()); } }
CurrentDcSentinelCheckController extends CurrentDcCheckController implements SentinelActionController, BiDirectionSupport { public boolean shouldCheck(RedisHealthCheckInstance instance) { RedisInstanceInfo info = instance.getRedisInstanceInfo(); return super.shouldCheck(instance) && !(getRedisCntInCurrentDc(info.getClusterId(), info.getShardId()) > 1 && info.isMaster()); }  }
CurrentDcSentinelCheckController extends CurrentDcCheckController implements SentinelActionController, BiDirectionSupport { public boolean shouldCheck(RedisHealthCheckInstance instance) { RedisInstanceInfo info = instance.getRedisInstanceInfo(); return super.shouldCheck(instance) && !(getRedisCntInCurrentDc(info.getClusterId(), info.getShardId()) > 1 && info.isMaster()); }  boolean shouldCheck(RedisHealthCheckInstance instance); }
CurrentDcSentinelCheckController extends CurrentDcCheckController implements SentinelActionController, BiDirectionSupport { public boolean shouldCheck(RedisHealthCheckInstance instance) { RedisInstanceInfo info = instance.getRedisInstanceInfo(); return super.shouldCheck(instance) && !(getRedisCntInCurrentDc(info.getClusterId(), info.getShardId()) > 1 && info.isMaster()); }  boolean shouldCheck(RedisHealthCheckInstance instance);  }