public String begin()

in src/frontend/src/main/java/com/alibabacloud/hipstershop/web/OutlierController.java [44:69]


    public String begin(Model model) {
        begin.set(true);

        REFRESH_EXECUTOR.submit((Runnable) () -> {
            while (begin.get()) {
                try {
                    Thread.sleep(sleepTime);
                    CloseableHttpClient httpClient = HttpClientBuilder.create().build();
                    // 创建Get请求
                    HttpGet httpGet = new HttpGet("http://localhost:8080/setExceptionByIp?ip=" + exceptionIp);
                    try {
                        httpClient.execute(httpGet);
                    } finally {
                        try {
                            httpClient.close();
                        } catch (Exception e) {
                        }
                    }
                } catch (Exception exception) {
                }
            }
        });

        show(model);
        return "outlier.html";
    }