com.heroku.agent.metrics.detector.ServerDetector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of heroku-java-metrics-agent Show documentation
Show all versions of heroku-java-metrics-agent Show documentation
This artifact is for use with the JVM Runtime Metrics features.
It is a lightweight Java agent that uses a Prometheus Java client to report metrics.
The newest version!
package com.heroku.agent.metrics.detector;
import java.lang.instrument.Instrumentation;
public interface ServerDetector {
boolean detect();
/**
* Notify detector that the JVM is about to start. A detector can, if needed, block and wait for
* some condition but should ultimately return at some point or throw an exception. This
* notification is executed in a very early stage (premain of the JVM agent) before the main class
* of the Server is executed.
*
* @param instrumentation the Instrumentation implementation
*/
void jvmAgentStartup(Instrumentation instrumentation);
}