DefaultConsoleService extends AbstractService implements ConsoleService { @Override public HEALTH_STATE getInstanceStatus(String ip, int port) { return restTemplate.getForObject(healthStatusUrl, HEALTH_STATE.class, ip, port); } DefaultConsoleService(String address); @Override HEALTH_STATE getInstanceStatus(String ip, int port); @Override Boolean getInstancePingStatus(String ip, int port); @Override Long getInstanceDelayStatus(String ip, int port); @Override Long getInstanceDelayStatusFromParallelService(String ip, int port); @Override Map<HostPort, Long> getAllInstanceDelayStatus(); @Override UnhealthyInfoModel getActiveClusterUnhealthyInstance(); @Override UnhealthyInfoModel getAllUnhealthyInstance(); @Override Map<String, Pair<HostPort, Long>> getCrossMasterDelay(String clusterId, String shardId); @Override Map<String, Pair<HostPort, Long>> getCrossMasterDelayFromParallelService(String sourceDcId, String clusterId, String shardId); @Override String toString();  }
@Test public void testManual(){ DefaultConsoleService defaultConsoleService = new DefaultConsoleService("http: HEALTH_STATE instanceStatus = defaultConsoleService.getInstanceStatus("10.2.24.215", 6379); logger.info("{}", instanceStatus); }