Skip to content
Snippets Groups Projects

Prometheus

Files

@@ -7,7 +7,7 @@ import java.io.OutputStream;
import java.security.GeneralSecurityException;
import nl.tudelft.ewi.auta.common.jump.Jump;
import nl.tudelft.ewi.auta.worker.config.WorkerSettings;
import io.prometheus.client.Gauge;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -49,9 +49,9 @@ public class MessageRelay implements Runnable {
private final ControlProcessor controlProcessor;
/**
* The settings for this worker.
* The gauge for this worker.
*/
private final WorkerSettings settings;
private final Gauge busyGauge;
/**
* The public key of the server.
@@ -76,18 +76,18 @@ public class MessageRelay implements Runnable {
* @param jump the jump protocol to use
* @param jobRunner the job acceptor to use
* @param controlProcessor the control processor to use
* @param settings the settings for the worker
* @param gauge the settings for the worker
*/
public MessageRelay(final ServerConnector connector,
final Jump jump,
final JobRunnerProvider jobRunner,
final ControlProcessor controlProcessor,
final WorkerSettings settings) {
final Gauge gauge) {
this.connector = connector;
this.jump = jump;
this.jobRunner = jobRunner;
this.controlProcessor = controlProcessor;
this.settings = settings;
this.busyGauge = gauge;
}
/**
@@ -208,7 +208,7 @@ public class MessageRelay implements Runnable {
return;
}
this.jobRunner.get().accept(msg, replySender);
this.jobRunner.get().accept(msg, replySender, this.busyGauge);
}
/**
Loading