From 761a8ea838579b585e58b415e0b3950d6ead3627 Mon Sep 17 00:00:00 2001 From: Carles Arnal Date: Thu, 18 Jan 2024 15:31:34 +0100 Subject: [PATCH] Bring back load generator --- .../io/apicurio/registry/probe/monitoring/LoadGenerator.java | 2 +- .../java/io/apicurio/registry/probe/smoke/ProbeMonitoring.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/apicurio/registry/probe/monitoring/LoadGenerator.java b/src/main/java/io/apicurio/registry/probe/monitoring/LoadGenerator.java index 9ef9ef6..277c41a 100644 --- a/src/main/java/io/apicurio/registry/probe/monitoring/LoadGenerator.java +++ b/src/main/java/io/apicurio/registry/probe/monitoring/LoadGenerator.java @@ -16,7 +16,7 @@ public class LoadGenerator { private static final Logger log = LoggerFactory.getLogger(ProbeMonitoring.class); - public void startMonitoring() { + public void startMonitoring(@Observes StartupEvent startupEvent) { int concurrentTasks = 2; try { diff --git a/src/main/java/io/apicurio/registry/probe/smoke/ProbeMonitoring.java b/src/main/java/io/apicurio/registry/probe/smoke/ProbeMonitoring.java index f6def9f..c717e2d 100644 --- a/src/main/java/io/apicurio/registry/probe/smoke/ProbeMonitoring.java +++ b/src/main/java/io/apicurio/registry/probe/smoke/ProbeMonitoring.java @@ -54,7 +54,7 @@ public Long failedDeletes() { return failedDeletes; } - public void startMonitoring() { + public void startMonitoring(@Observes StartupEvent startupEvent) { oAuthclient = createOauthClient(); basicClient = createBasicClient();