|
|
@ -38,7 +38,7 @@ public class ClusterMethodAspect extends BaseUpdater { |
|
|
|
private final RestTemplate restTemplate; |
|
|
|
private final String[] clusters; |
|
|
|
private final Logger logger = LoggerFactory.getLogger(getClass()); |
|
|
|
private final Long max_range = 300L; |
|
|
|
private final Long max_range = 15L; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
public ClusterMethodAspect(Environment environment) { |
|
|
@ -101,7 +101,7 @@ public class ClusterMethodAspect extends BaseUpdater { |
|
|
|
for(int i = 0; i < clusters.length; i++) { |
|
|
|
int finalI = i; |
|
|
|
this.logger.info("Create cluster pulse check on {}", clusters[finalI]); |
|
|
|
CreateTaskUpdater(() -> checkCluster(clusters[finalI]), 60 * 1000, getClass().getName()); |
|
|
|
CreateTaskUpdater(() -> checkCluster(clusters[finalI]), 1000, getClass().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|