/** * Copy constructor * * @param other The other {@link DropwizardMetricsOptions} to copy when creating this */ public DropwizardMetricsOptions(DropwizardMetricsOptions other) { super(other); registryName = other.getRegistryName(); jmxEnabled = other.isJmxEnabled(); jmxDomain = other.getJmxDomain(); configPath = other.getConfigPath(); monitoredEventBusHandlers = new ArrayList<>(other.monitoredEventBusHandlers); monitoredHttpServerUris = new ArrayList<>(other.monitoredHttpServerUris); monitoredHttpClientUris = new ArrayList<>(other.monitoredHttpClientUris); monitoredHttpClientEndpoints = new ArrayList<>(other.monitoredHttpClientEndpoints); metricRegistry = other.getMetricRegistry(); }
metricsOptions = new DropwizardMetricsOptions(baseOptions.toJson()); MetricRegistry registry = metricsOptions.getMetricRegistry() != null ? metricsOptions.getMetricRegistry() : new MetricRegistry(); boolean shutdown = true; if (metricsOptions.getRegistryName() != null) {