public class DropwizardMetricsOptions extends MetricsOptions
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_JMX_ENABLED
The default value of JMX enabled = false
|
static List<Match> |
DEFAULT_MONITORED_HANDLERS
The default monitored handlers : empty by default
|
static List<Match> |
DEFAULT_MONITORED_HTTP_CLIENT_URIS
The default monitored http client uris : empty by default
|
static List<Match> |
DEFAULT_MONITORED_HTTP_SERVER_URIS
The default monitored http server uris : empty by default
|
DEFAULT_METRICS_ENABLED| Constructor and Description |
|---|
DropwizardMetricsOptions()
Default constructor
|
DropwizardMetricsOptions(DropwizardMetricsOptions other)
Copy constructor
|
DropwizardMetricsOptions(JsonObject json)
Create an instance from a
JsonObject |
DropwizardMetricsOptions(MetricsOptions other)
Copy constructor with base metrics options
|
| Modifier and Type | Method and Description |
|---|---|
DropwizardMetricsOptions |
addMonitoredEventBusHandler(Match match)
Add a monitored event bus handler.
|
DropwizardMetricsOptions |
addMonitoredHttpClientUri(Match match)
Add an monitored http client uri.
|
DropwizardMetricsOptions |
addMonitoredHttpServerUri(Match match)
Add an monitored http server uri.
|
String |
getConfigPath() |
String |
getJmxDomain()
Get the JMX domain to use when JMX metrics are enabled.
|
List<Match> |
getMonitoredEventBusHandlers() |
List<Match> |
getMonitoredHttpClientUris() |
List<Match> |
getMonitoredHttpServerUris() |
String |
getRegistryName()
An optional name used for registering the metrics in the Dropwizard shared registry.
|
boolean |
isJmxEnabled()
Will JMX be enabled on the Vert.x instance?
|
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.
|
DropwizardMetricsOptions |
setEnabled(boolean enable)
Set whether metrics will be enabled on the Vert.x instance.
|
DropwizardMetricsOptions |
setJmxDomain(String jmxDomain)
Set the JMX domain to use when JMX metrics are enabled.
|
DropwizardMetricsOptions |
setJmxEnabled(boolean jmxEnabled)
Set whether JMX will be enabled on the Vert.x instance.
|
DropwizardMetricsOptions |
setRegistryName(String registryName)
Set the name used for registering the metrics in the Dropwizard shared registry.
|
public static final boolean DEFAULT_JMX_ENABLED
public static final List<Match> DEFAULT_MONITORED_HANDLERS
public static final List<Match> DEFAULT_MONITORED_HTTP_SERVER_URIS
public DropwizardMetricsOptions()
public DropwizardMetricsOptions(MetricsOptions other)
other - The other MetricsOptions to copy when creating thispublic DropwizardMetricsOptions(DropwizardMetricsOptions other)
other - The other DropwizardMetricsOptions to copy when creating thispublic DropwizardMetricsOptions(JsonObject json)
JsonObjectjson - the JsonObject to create it frompublic String getRegistryName()
public DropwizardMetricsOptions setRegistryName(String registryName)
registryName - the namepublic boolean isJmxEnabled()
public DropwizardMetricsOptions setJmxEnabled(boolean jmxEnabled)
jmxEnabled - true if JMX enabled, or false if not.public String getJmxDomain()
public DropwizardMetricsOptions setJmxDomain(String jmxDomain)
jmxDomain - the JMX domainpublic List<Match> getMonitoredEventBusHandlers()
public DropwizardMetricsOptions addMonitoredEventBusHandler(Match match)
match - the event bus address matchpublic List<Match> getMonitoredHttpServerUris()
public DropwizardMetricsOptions addMonitoredHttpServerUri(Match match)
match - the handler matchpublic List<Match> getMonitoredHttpClientUris()
public DropwizardMetricsOptions setEnabled(boolean enable)
MetricsOptionssetEnabled in class MetricsOptionsenable - true if metrics enabled, or false if not.public String getConfigPath()
public DropwizardMetricsOptions setConfigPath(String configPath)
configPath - the file namepublic DropwizardMetricsOptions addMonitoredHttpClientUri(Match match)
match - the handler matchCopyright © 2015. All rights reserved.