| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | DEFAULT_METRICS_ENABLED
The default value of metrics enabled false |
| private boolean | |
| private VertxMetricsFactory | |
| private JsonObject | json
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | MetricsOptions(MetricsOptions
The other other)MetricsOptions to copy when creating thisCopy constructor |
| public | MetricsOptions(JsonObject
the JsonObject to create it from json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Create an instance from a |
| Modifier and Type | Method and Description |
|---|---|
| public VertxMetricsFactory | Returns: the metrics factoryGet the metrics factory to be used when metrics are enabled. |
| public boolean | |
| public MetricsOptions | Returns: a reference to this, so the API can be used fluentlytrue if metrics enabled, or false if not. enable)Set whether metrics will be enabled on the Vert.x instance. |
| public MetricsOptions | Returns: a reference to this, so the API can be used fluentlythe metrics factory factory)
Deprecated
instead use
io.
Programmatically set the metrics factory to be used when metrics are enabled. |
| public JsonObject | toJson()
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public String |
| DEFAULT_METRICS_ENABLED | back to summary |
|---|---|
| public static final boolean DEFAULT_METRICS_ENABLED The default value of metrics enabled false | |
| enabled | back to summary |
|---|---|
| private boolean enabled | |
| factory | back to summary |
|---|---|
| private VertxMetricsFactory factory | |
| json | back to summary |
|---|---|
| private JsonObject json
References Deprecated
See corresponding docs for further information. | |
| MetricsOptions | back to summary |
|---|---|
| public MetricsOptions() Default constructor | |
| MetricsOptions | back to summary |
|---|---|
| public MetricsOptions(MetricsOptions other) Copy constructor
| |
| MetricsOptions | back to summary |
|---|---|
| public MetricsOptions(JsonObject json)
References Deprecated
See corresponding docs for further information. Create an instance from a
| |
| getFactory | back to summary |
|---|---|
| public VertxMetricsFactory getFactory() Get the metrics factory to be used when metrics are enabled.
If the metrics factory has been programmatically set here, then that will be used when metrics are enabled
for creating the Otherwise Vert.x attempts to locate a metrics factory implementation on the classpath.
| |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled() Will metrics be enabled on the Vert.x instance?
| |
| setEnabled | back to summary |
|---|---|
| public MetricsOptions setEnabled(boolean enable) Set whether metrics will be enabled on the Vert.x instance.
| |
| setFactory | back to summary |
|---|---|
| public MetricsOptions setFactory(VertxMetricsFactory factory)
Deprecated instead use Programmatically set the metrics factory to be used when metrics are enabled.
Only valid if Normally Vert.x will look on the classpath for a metrics factory implementation, but if you want to set one programmatically you can use this method.
| |
| toJson | back to summary |
|---|---|
| public JsonObject toJson()
References Deprecated
See corresponding docs for further information. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |