public interface VertxMetrics extends Metrics, Measured
HttpServer
, EventBusMetrics
, etc.Modifier and Type | Method and Description |
---|---|
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. |
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 verticleDeployed(io.vertx.core.Verticle) invocation. |
isMetricsEnabled
void verticleDeployed(Verticle verticle)
Context
and thread of the deployed verticle and therefore
might be different on every invocation.verticle
- the verticle which was deployedvoid verticleUndeployed(Verticle verticle)
Context
and thread of the deployed verticle and therefore
might be different on every invocation, however these are the same than the verticleDeployed(io.vertx.core.Verticle)
invocation.verticle
- the verticle which was undeployedvoid timerCreated(long id)
id
- the id of the timervoid timerEnded(long id, boolean cancelled)
id
- the id of the timercancelled
- if the timer was cancelled by the userEventBusMetrics createMetrics(EventBus eventBus)
eventBus
- the Vert.x event busHttpServerMetrics<?,?,?> createMetrics(HttpServer server, SocketAddress localAddress, HttpServerOptions options)
localAddress
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.server
- the Vert.x http serverlocalAddress
- localAddress the local address the net socket is listening onoptions
- the options used to create the HttpServer
HttpClientMetrics<?,?,?> createMetrics(HttpClient client, HttpClientOptions options)
client
- the Vert.x http clientoptions
- the options used to create the HttpClient
TCPMetrics<?> createMetrics(NetServer server, SocketAddress localAddress, NetServerOptions options)
localAddress
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.server
- the Vert.x net serverlocalAddress
- localAddress the local address the net socket is listening onoptions
- the options used to create the NetServer
TCPMetrics<?> createMetrics(NetClient client, NetClientOptions options)
client
- the Vert.x net clientoptions
- the options used to create the NetClient
DatagramSocketMetrics createMetrics(DatagramSocket socket, DatagramSocketOptions options)
socket
- the Vert.x datagram socketoptions
- the options used to create the DatagramSocket
Copyright © 2015. All rights reserved.