@NotThreadSafe public class MetricsServlet extends Object implements Sink
Constructor and Description |
---|
MetricsServlet(com.codahale.metrics.MetricRegistry registry)
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.jetty.servlet.ServletContextHandler |
getHandler()
Gets the
ServletContextHandler of the metrics servlet. |
void |
report()
Reports the current values of all metrics.
|
void |
start()
Starts the reporter polling.
|
void |
stop()
Stops the reporter.
|
public MetricsServlet(com.codahale.metrics.MetricRegistry registry)
registry
- the metric registry to registerpublic org.eclipse.jetty.servlet.ServletContextHandler getHandler()
ServletContextHandler
of the metrics servlet.ServletContextHandler
objectpublic void start()
Sink
public void stop()
Sink
Copyright © 2023. All Rights Reserved.