Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3b9e6dc

Browse files
chore: testing
1 parent 8a5b177 commit 3b9e6dc

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

‎src/main/java/spp/demo/Main.java‎

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,24 +66,24 @@ public static void triggerEndpoints() {
6666
// callEndpoint("/insight/slow-function");
6767
// callEndpoint("/insight/fast-function");
6868

69-
//view activity command
70-
callEndpoint("/command/view-activity");
71-
72-
//view traces command
73-
callEndpoint("/command/view-traces");
74-
75-
//failing endpoint indicator
76-
callEndpoint("/indicator/fail-100-percent");
77-
callEndpoint("/indicator/fail-50-percent");
78-
79-
//slow endpoint indicator
80-
callEndpoint("/indicator/slow-2000ms");
81-
callEndpoint("/indicator/slow-1000ms");
82-
83-
//high load endpoint indicator
84-
for (int i = 0; i < 6; i++) {
85-
callEndpoint("/indicator/high-load-six-per-second");
86-
}
69+
// //view activity command
70+
// callEndpoint("/command/view-activity");
71+
//
72+
// //view traces command
73+
// callEndpoint("/command/view-traces");
74+
//
75+
// //failing endpoint indicator
76+
// callEndpoint("/indicator/fail-100-percent");
77+
// callEndpoint("/indicator/fail-50-percent");
78+
//
79+
// //slow endpoint indicator
80+
// callEndpoint("/indicator/slow-2000ms");
81+
// callEndpoint("/indicator/slow-1000ms");
82+
//
83+
// //high load endpoint indicator
84+
// for (int i = 0; i < 6; i++) {
85+
// callEndpoint("/indicator/high-load-six-per-second");
86+
// }
8787
for (int i = 0; i < 3; i++) {
8888
callEndpoint("/indicator/high-load-three-per-second");
8989
}
@@ -104,7 +104,8 @@ private static void callEndpoint(String endpoint) {
104104
connection = (HttpURLConnection) url.openConnection();
105105
connection.setConnectTimeout(10_000);
106106
connection.setReadTimeout(10_000);
107-
connection.getResponseCode();
107+
int responseCode = connection.getResponseCode();
108+
System.out.println("Response code: " + responseCode);
108109
} catch (Exception ignore) {
109110
} finally {
110111
if (connection != null) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /