Package io.vertx.ext.dropwizard
Class DropwizardMetricsOptions
- java.lang.Object
- 
- io.vertx.core.metrics.MetricsOptions
- 
- io.vertx.ext.dropwizard.DropwizardMetricsOptions
 
 
- 
 public class DropwizardMetricsOptions extends MetricsOptions Vert.x Dropwizard metrics configuration.- Author:
- Julien Viet
 
- 
- 
Field SummaryFields Modifier and Type Field Description static booleanDEFAULT_JMX_ENABLEDThe default value of JMX enabled =falsestatic List<Match>DEFAULT_MONITORED_HANDLERSThe default monitored handlers :nullstatic List<Match>DEFAULT_MONITORED_HTTP_CLIENT_ENDPOINTSThe default monitored http client endpoints :nullstatic List<Match>DEFAULT_MONITORED_HTTP_CLIENT_URISThe default monitored http client uris :nullstatic List<Match>DEFAULT_MONITORED_HTTP_SERVER_ROUTESThe default monitored http server routes :nullstatic List<Match>DEFAULT_MONITORED_HTTP_SERVER_URISThe default monitored http server uris :null- 
Fields inherited from class io.vertx.core.metrics.MetricsOptionsDEFAULT_METRICS_ENABLED
 
- 
 - 
Constructor SummaryConstructors Constructor Description DropwizardMetricsOptions()Default constructorDropwizardMetricsOptions(JsonObject json)Create an instance from aJsonObjectDropwizardMetricsOptions(MetricsOptions other)Copy constructor with base metrics optionsDropwizardMetricsOptions(DropwizardMetricsOptions other)Copy constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DropwizardMetricsOptionsaddMonitoredEventBusHandler(Match match)Add a monitored event bus handler.DropwizardMetricsOptionsaddMonitoredHttpClientEndpoint(Match match)Add an monitored http client endpoint.DropwizardMetricsOptionsaddMonitoredHttpClientUri(Match match)Add an monitored http client uri.DropwizardMetricsOptionsaddMonitoredHttpServerRoute(Match match)Add an monitored http server route.DropwizardMetricsOptionsaddMonitoredHttpServerUri(Match match)Add an monitored http server uri.StringgetBaseName()StringgetConfigPath()StringgetJmxDomain()Get the JMX domain to use when JMX metrics are enabled.List<Match>getMonitoredEventBusHandlers()List<Match>getMonitoredHttpClientEndpoint()List<Match>getMonitoredHttpClientUris()List<Match>getMonitoredHttpServerRoutes()List<Match>getMonitoredHttpServerUris()StringgetRegistryName()An optional name used for registering the metrics in the Dropwizard shared registry.booleanisJmxEnabled()Will JMX be enabled on the Vert.x instance?DropwizardMetricsOptionssetBaseName(String baseName)Set a custom baseName for metrics.DropwizardMetricsOptionssetConfigPath(String configPath)Set the path for a config file that contains options in JSON format, to be used to create a new options object.DropwizardMetricsOptionssetEnabled(boolean enable)Set whether metrics will be enabled on the Vert.x instance.DropwizardMetricsOptionssetJmxDomain(String jmxDomain)Set the JMX domain to use when JMX metrics are enabled.DropwizardMetricsOptionssetJmxEnabled(boolean jmxEnabled)Set whether JMX will be enabled on the Vert.x instance.DropwizardMetricsOptionssetRegistryName(String registryName)Set the name used for registering the metrics in the Dropwizard shared registry.JsonObjecttoJson()- 
Methods inherited from class io.vertx.core.metrics.MetricsOptionsisEnabled, toString
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_JMX_ENABLEDpublic static final boolean DEFAULT_JMX_ENABLED The default value of JMX enabled =false- See Also:
- Constant Field Values
 
 - 
DEFAULT_MONITORED_HANDLERSpublic static final List<Match> DEFAULT_MONITORED_HANDLERS The default monitored handlers :null
 - 
DEFAULT_MONITORED_HTTP_SERVER_URISpublic static final List<Match> DEFAULT_MONITORED_HTTP_SERVER_URIS The default monitored http server uris :null
 - 
DEFAULT_MONITORED_HTTP_SERVER_ROUTESpublic static final List<Match> DEFAULT_MONITORED_HTTP_SERVER_ROUTES The default monitored http server routes :null
 - 
DEFAULT_MONITORED_HTTP_CLIENT_URISpublic static final List<Match> DEFAULT_MONITORED_HTTP_CLIENT_URIS The default monitored http client uris :null
 
- 
 - 
Constructor Detail- 
DropwizardMetricsOptionspublic DropwizardMetricsOptions() Default constructor
 - 
DropwizardMetricsOptionspublic DropwizardMetricsOptions(MetricsOptions other) Copy constructor with base metrics options- Parameters:
- other- The other- MetricsOptionsto copy when creating this
 
 - 
DropwizardMetricsOptionspublic DropwizardMetricsOptions(DropwizardMetricsOptions other) Copy constructor- Parameters:
- other- The other- DropwizardMetricsOptionsto copy when creating this
 
 - 
DropwizardMetricsOptionspublic DropwizardMetricsOptions(JsonObject json) Create an instance from aJsonObject- Parameters:
- json- the JsonObject to create it from
 
 
- 
 - 
Method Detail- 
getRegistryNamepublic String getRegistryName() An optional name used for registering the metrics in the Dropwizard shared registry.- Returns:
- the registry name
 
 - 
setRegistryNamepublic DropwizardMetricsOptions setRegistryName(String registryName) Set the name used for registering the metrics in the Dropwizard shared registry.- Parameters:
- registryName- the name
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
isJmxEnabledpublic boolean isJmxEnabled() Will JMX be enabled on the Vert.x instance?- Returns:
- true if enabled, false if not.
 
 - 
setJmxEnabledpublic DropwizardMetricsOptions setJmxEnabled(boolean jmxEnabled) Set whether JMX will be enabled on the Vert.x instance.- Parameters:
- jmxEnabled- true if JMX enabled, or false if not.
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
getJmxDomainpublic String getJmxDomain() Get the JMX domain to use when JMX metrics are enabled.- Returns:
- the JMX domain
 
 - 
setJmxDomainpublic DropwizardMetricsOptions setJmxDomain(String jmxDomain) Set the JMX domain to use when JMX metrics are enabled.- Parameters:
- jmxDomain- the JMX domain
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
getMonitoredEventBusHandlerspublic List<Match> getMonitoredEventBusHandlers() - Returns:
- the list of monitored event bus handlers
 
 - 
addMonitoredEventBusHandlerpublic DropwizardMetricsOptions addMonitoredEventBusHandler(Match match) Add a monitored event bus handler.- Parameters:
- match- the event bus address match
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
getMonitoredHttpServerUrispublic List<Match> getMonitoredHttpServerUris() - Returns:
- the list of monitored http server uris
 
 - 
addMonitoredHttpServerUripublic DropwizardMetricsOptions addMonitoredHttpServerUri(Match match) Add an monitored http server uri.- Parameters:
- match- the handler match
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
getMonitoredHttpServerRoutespublic List<Match> getMonitoredHttpServerRoutes() - Returns:
- the list of monitored http server routes
 
 - 
addMonitoredHttpServerRoutepublic DropwizardMetricsOptions addMonitoredHttpServerRoute(Match match) Add an monitored http server route.- Parameters:
- match- the handler match
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
getMonitoredHttpClientUrispublic List<Match> getMonitoredHttpClientUris() - Returns:
- the list of monitored http client uris
 
 - 
setEnabledpublic DropwizardMetricsOptions setEnabled(boolean enable) Description copied from class:MetricsOptionsSet whether metrics will be enabled on the Vert.x instance.- Overrides:
- setEnabledin class- MetricsOptions
- Parameters:
- enable- true if metrics enabled, or false if not.
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
getConfigPathpublic String getConfigPath() - Returns:
- the path for a config file to create an Options object from.
 
 - 
setConfigPathpublic DropwizardMetricsOptions setConfigPath(String configPath) Set the path for a config file that contains options in JSON format, to be used to create a new options object. The file will be looked for on the file system first and then on the classpath if it's not found.- Parameters:
- configPath- the file name
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
addMonitoredHttpClientUripublic DropwizardMetricsOptions addMonitoredHttpClientUri(Match match) Add an monitored http client uri.- Parameters:
- match- the handler match
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
addMonitoredHttpClientEndpointpublic DropwizardMetricsOptions addMonitoredHttpClientEndpoint(Match match) Add an monitored http client endpoint.- Parameters:
- match- the handler match
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
getMonitoredHttpClientEndpointpublic List<Match> getMonitoredHttpClientEndpoint() - Returns:
- the list of monitored http client endpoints
 
 - 
setBaseNamepublic DropwizardMetricsOptions setBaseName(String baseName) Set a custom baseName for metrics.- Parameters:
- baseName- the new baseName.
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
getBaseNamepublic String getBaseName() - Returns:
- The custom baseName.
 
 - 
toJsonpublic JsonObject toJson() - Overrides:
- toJsonin class- MetricsOptions
- Returns:
- a JSON representation of these options
 
 
- 
 
-