public class DummyVertxMetrics extends Object implements VertxMetrics
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.
|
DatagramSocketMetrics |
createMetrics(DatagramSocket socket,
DatagramSocketOptions options)
Provides the datagram/udp metrics SPI when a datagram socket is created
|
EventBusMetrics |
createMetrics(EventBus eventBus)
Provides the event bus metrics SPI when the event bus is created
|
HttpClientMetrics |
createMetrics(HttpClient client,
HttpClientOptions options)
Provides the http client metrics SPI when an http client has been created
|
HttpServerMetrics |
createMetrics(HttpServer server,
SocketAddress localAddress,
HttpServerOptions options)
Provides the http server metrics SPI when an http server is created
|
TCPMetrics |
createMetrics(NetClient client,
NetClientOptions options)
Provides the net client metrics SPI when a net client is created
|
TCPMetrics |
createMetrics(NetServer server,
SocketAddress localAddress,
NetServerOptions options)
Provides the net server metrics SPI when a net server is created
|
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
|
void |
timerEnded(long id,
boolean cancelled)
Called when a timer has ended (setTimer) or has been cancelled.
|
void |
verticleDeployed(Verticle verticle)
Called when a verticle is deployed in Vert.x
|
void |
verticleUndeployed(Verticle verticle)
Called when a verticle is undeployed in Vert.x
|
public void verticleDeployed(Verticle verticle)
VertxMetrics
verticleDeployed
in interface VertxMetrics
verticle
- the verticle which was deployedpublic void verticleUndeployed(Verticle verticle)
VertxMetrics
verticleUndeployed
in interface VertxMetrics
verticle
- the verticle which was undeployedpublic void timerCreated(long id)
VertxMetrics
timerCreated
in interface VertxMetrics
id
- the id of the timerpublic void timerEnded(long id, boolean cancelled)
VertxMetrics
timerEnded
in interface VertxMetrics
id
- the id of the timercancelled
- if the timer was cancelled by the userpublic EventBusMetrics createMetrics(EventBus eventBus)
VertxMetrics
createMetrics
in interface VertxMetrics
eventBus
- the Vert.x event buspublic HttpServerMetrics createMetrics(HttpServer server, SocketAddress localAddress, HttpServerOptions options)
VertxMetrics
createMetrics
in interface VertxMetrics
server
- the Vert.x http serverlocalAddress
- localAddress the local address the net socket is listening onoptions
- the options used to create the HttpServer
public HttpClientMetrics createMetrics(HttpClient client, HttpClientOptions options)
VertxMetrics
createMetrics
in interface VertxMetrics
client
- the Vert.x http clientoptions
- the options used to create the HttpClient
public TCPMetrics createMetrics(NetServer server, SocketAddress localAddress, NetServerOptions options)
VertxMetrics
createMetrics
in interface VertxMetrics
server
- the Vert.x net serverlocalAddress
- localAddress the local address the net socket is listening onoptions
- the options used to create the NetServer
public TCPMetrics createMetrics(NetClient client, NetClientOptions options)
VertxMetrics
createMetrics
in interface VertxMetrics
client
- the Vert.x net clientoptions
- the options used to create the NetClient
public DatagramSocketMetrics createMetrics(DatagramSocket socket, DatagramSocketOptions options)
VertxMetrics
createMetrics
in interface VertxMetrics
socket
- the Vert.x datagram socketoptions
- the options used to create the DatagramSocket
public void close()
Metrics
public boolean isEnabled()
Metrics
public boolean isMetricsEnabled()
Measured
isMetricsEnabled
in interface Measured
Copyright © 2015. All Rights Reserved.