public class DummyVertxMetrics extends Object implements VertxMetrics
| Modifier and Type | Class and Description |
|---|---|
protected class |
DummyVertxMetrics.DummyDatagramMetrics |
protected class |
DummyVertxMetrics.DummyEventBusMetrics |
protected class |
DummyVertxMetrics.DummyHttpClientMetrics |
protected class |
DummyVertxMetrics.DummyHttpServerMetrics |
protected class |
DummyVertxMetrics.DummyTCPMetrics |
| Constructor and Description |
|---|
DummyVertxMetrics() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Used to close out the metrics, for example when an http server/client has been closed.
No specific thread and context can be expected when this method is called.
|
DatagramSocketMetrics |
createMetrics(DatagramSocket socket,
DatagramSocketOptions options)
Provides the datagram/udp metrics SPI when a datagram socket is created.
No specific thread and context can be expected when this method is called.
|
EventBusMetrics |
createMetrics(EventBus eventBus)
Provides the event bus metrics SPI when the event bus is created.
No specific thread and context can be expected when this method is called.
This method should be called only once.
|
HttpClientMetrics |
createMetrics(HttpClient client,
HttpClientOptions options)
Provides the http client metrics SPI when an http client has been created.
No specific thread and context can be expected when this method is called.
|
HttpServerMetrics |
createMetrics(HttpServer server,
SocketAddress localAddress,
HttpServerOptions options)
Provides the http server metrics SPI when an http server is created.
No specific thread and context can be expected when this method is called.
Note: this method can be called more than one time for the same
localAddress when a server is
scaled, it is the responsibility of the metrics implementation to eventually merge metrics. |
TCPMetrics |
createMetrics(NetClient client,
NetClientOptions options)
Provides the net client metrics SPI when a net client is created.
No specific thread and context can be expected when this method is called.
|
TCPMetrics |
createMetrics(NetServer server,
SocketAddress localAddress,
NetServerOptions options)
Provides the net server metrics SPI when a net server is created.
No specific thread and context can be expected when this method is called.
Note: this method can be called more than one time for the same
localAddress when a server is
scaled, it is the responsibility of the metrics implementation to eventually merge metrics. |
boolean |
isEnabled()
Whether the metrics are enabled.
|
boolean |
isMetricsEnabled()
Whether the metrics are enabled for this measured object
|
void |
timerCreated(long id)
Called when a timer is created
No specific thread and context can be expected when this method is called.
|
void |
timerEnded(long id,
boolean cancelled)
Called when a timer has ended (setTimer) or has been cancelled.
No specific thread and context can be expected when this method is called.
|
void |
verticleDeployed(Verticle verticle)
Called when a verticle is deployed in Vert.x .
This method is invoked with
Context and thread of the deployed verticle and therefore
might be different on every invocation. |
void |
verticleUndeployed(Verticle verticle)
Called when a verticle is undeployed in Vert.x .
This method is invoked with
Context and thread of the deployed verticle and therefore
might be different on every invocation, however these are the same than the VertxMetrics.verticleDeployed(io.vertx.core.Verticle) invocation. |
public void verticleDeployed(Verticle verticle)
VertxMetricsContext and thread of the deployed verticle and therefore
might be different on every invocation.verticleDeployed in interface VertxMetricsverticle - the verticle which was deployedpublic void verticleUndeployed(Verticle verticle)
VertxMetricsContext and thread of the deployed verticle and therefore
might be different on every invocation, however these are the same than the VertxMetrics.verticleDeployed(io.vertx.core.Verticle) invocation.verticleUndeployed in interface VertxMetricsverticle - the verticle which was undeployedpublic void timerCreated(long id)
VertxMetricstimerCreated in interface VertxMetricsid - the id of the timerpublic void timerEnded(long id,
boolean cancelled)
VertxMetricstimerEnded in interface VertxMetricsid - the id of the timercancelled - if the timer was cancelled by the userpublic EventBusMetrics createMetrics(EventBus eventBus)
VertxMetricscreateMetrics in interface VertxMetricseventBus - the Vert.x event buspublic HttpServerMetrics createMetrics(HttpServer server, SocketAddress localAddress, HttpServerOptions options)
VertxMetricslocalAddress when a server is
scaled, it is the responsibility of the metrics implementation to eventually merge metrics. In this case
the provided server argument can be used to distinguish the different HttpServerMetrics
instances.createMetrics in interface VertxMetricsserver - the Vert.x http serverlocalAddress - localAddress the local address the net socket is listening onoptions - the options used to create the HttpServerpublic HttpClientMetrics createMetrics(HttpClient client, HttpClientOptions options)
VertxMetricscreateMetrics in interface VertxMetricsclient - the Vert.x http clientoptions - the options used to create the HttpClientpublic TCPMetrics createMetrics(NetServer server, SocketAddress localAddress, NetServerOptions options)
VertxMetricslocalAddress when a server is
scaled, it is the responsibility of the metrics implementation to eventually merge metrics. In this case
the provided server argument can be used to distinguish the different TCPMetrics
instances.createMetrics in interface VertxMetricsserver - the Vert.x net serverlocalAddress - localAddress the local address the net socket is listening onoptions - the options used to create the NetServerpublic TCPMetrics createMetrics(NetClient client, NetClientOptions options)
VertxMetricscreateMetrics in interface VertxMetricsclient - the Vert.x net clientoptions - the options used to create the NetClientpublic DatagramSocketMetrics createMetrics(DatagramSocket socket, DatagramSocketOptions options)
VertxMetricscreateMetrics in interface VertxMetricssocket - the Vert.x datagram socketoptions - the options used to create the DatagramSocketpublic void close()
Metricspublic boolean isEnabled()
Metricspublic boolean isMetricsEnabled()
MeasuredisMetricsEnabled in interface MeasuredCopyright © 2015. All Rights Reserved.