MetricRegistry() { metricTypes.add(Field.ClientExecuteTime); metricTypes.add(Field.Exception); metricTypes.add(Field.ThrottleException); metricTypes.add(Field.HttpClientRetryCount); metricTypes.add(Field.HttpRequestTime); metricTypes.add(Field.RequestCount); // metricTypes.add(Field.RequestSigningTime); // metricTypes.add(Field.ResponseProcessingTime); metricTypes.add(Field.RetryCount); metricTypes.add(Field.RetryCapacityConsumed); metricTypes.add(Field.ThrottledRetryCount); metricTypes.add(Field.HttpClientSendRequestTime); metricTypes.add(Field.HttpClientReceiveResponseTime); metricTypes.add(Field.HttpSocketReadTime); metricTypes.add(Field.HttpClientPoolAvailableCount); metricTypes.add(Field.HttpClientPoolLeasedCount); metricTypes.add(Field.HttpClientPoolPendingCount); metricTypes.add(AWSServiceMetrics.HttpClientGetConnectionTime); syncReadOnly(); }
public <T extends MetricType> void setMetricTypes(Collection<T> types) { synchronized(metricTypes) { if (types == null || types.size() == 0) { if (metricTypes.size() == 0) return; if (types == null) types = Collections.emptyList(); } metricTypes.clear(); if (!addMetricTypes(types)) { syncReadOnly(); // avoid missing sync } } } public boolean removeMetricType(MetricType type) {
public boolean addMetricType(MetricType type) { synchronized(metricTypes) { boolean added = metricTypes.add(type); if (added) syncReadOnly(); return added; } } public <T extends MetricType> boolean addMetricTypes(Collection<T> types) {
public <T extends MetricType> boolean addMetricTypes(Collection<T> types) { synchronized (metricTypes) { boolean added = metricTypes.addAll(types); if (added) syncReadOnly(); return added; } }
public boolean removeMetricType(MetricType type) { synchronized(metricTypes) { boolean removed = metricTypes.remove(type); if (removed) syncReadOnly(); return removed; } } public Set<MetricType> predefinedMetrics() {
public boolean addMetricType(MetricType type) { synchronized(metricTypes) { boolean added = metricTypes.add(type); if (added) syncReadOnly(); return added; } } public <T extends MetricType> boolean addMetricTypes(Collection<T> types) {
public boolean addMetricType(MetricType type) { synchronized (metricTypes) { boolean added = metricTypes.add(type); if (added) syncReadOnly(); return added; } }
public boolean addMetricType(MetricType type) { synchronized (metricTypes) { boolean added = metricTypes.add(type); if (added) syncReadOnly(); return added; } }
MetricRegistry() { metricTypes.add(Field.ClientExecuteTime); metricTypes.add(Field.Exception); metricTypes.add(Field.ThrottleException); metricTypes.add(Field.HttpClientRetryCount); metricTypes.add(Field.HttpRequestTime); metricTypes.add(Field.RequestCount); // metricTypes.add(Field.RequestSigningTime); // metricTypes.add(Field.ResponseProcessingTime); metricTypes.add(Field.RetryCount); metricTypes.add(Field.RetryCapacityConsumed); metricTypes.add(Field.ThrottledRetryCount); metricTypes.add(Field.HttpClientSendRequestTime); metricTypes.add(Field.HttpClientReceiveResponseTime); metricTypes.add(Field.HttpSocketReadTime); metricTypes.add(Field.HttpClientPoolAvailableCount); metricTypes.add(Field.HttpClientPoolLeasedCount); metricTypes.add(Field.HttpClientPoolPendingCount); metricTypes.add(AWSServiceMetrics.HttpClientGetConnectionTime); syncReadOnly(); }
MetricRegistry() { metricTypes.add(Field.ClientExecuteTime); metricTypes.add(Field.Exception); metricTypes.add(Field.HttpClientRetryCount); metricTypes.add(Field.HttpRequestTime); metricTypes.add(Field.RequestCount); // metricTypes.add(Field.RequestSigningTime); // metricTypes.add(Field.ResponseProcessingTime); metricTypes.add(Field.RetryCount); metricTypes.add(Field.HttpClientSendRequestTime); metricTypes.add(Field.HttpClientReceiveResponseTime); metricTypes.add(Field.HttpClientPoolAvailableCount); metricTypes.add(Field.HttpClientPoolLeasedCount); metricTypes.add(Field.HttpClientPoolPendingCount); metricTypes.add(AWSServiceMetrics.HttpClientGetConnectionTime); syncReadOnly(); }
public <T extends MetricType> void setMetricTypes(Collection<T> types) { synchronized(metricTypes) { if (types == null || types.size() == 0) { if (metricTypes.size() == 0) return; if (types == null) types = Collections.emptyList(); } metricTypes.clear(); if (!addMetricTypes(types)) { syncReadOnly(); // avoid missing sync } } } public boolean removeMetricType(MetricType type) {
public <T extends MetricType> void setMetricTypes(Collection<T> types) { synchronized (metricTypes) { if (types == null || types.size() == 0) { if (metricTypes.size() == 0) return; if (types == null) types = Collections.emptyList(); } metricTypes.clear(); if (!addMetricTypes(types)) { syncReadOnly(); // avoid missing sync } } }
public boolean removeMetricType(MetricType type) { synchronized(metricTypes) { boolean removed = metricTypes.remove(type); if (removed) syncReadOnly(); return removed; } } public Set<MetricType> predefinedMetrics() {
public boolean addMetricType(MetricType type) { synchronized (metricTypes) { boolean added = metricTypes.add(type); if (added) syncReadOnly(); return added; } }
public boolean removeMetricType(MetricType type) { synchronized (metricTypes) { boolean removed = metricTypes.remove(type); if (removed) syncReadOnly(); return removed; } }
public <T extends MetricType> boolean addMetricTypes(Collection<T> types) { synchronized (metricTypes) { boolean added = metricTypes.addAll(types); if (added) syncReadOnly(); return added; } }
public boolean addMetricType(MetricType type) { synchronized(metricTypes) { boolean added = metricTypes.add(type); if (added) syncReadOnly(); return added; } } public <T extends MetricType> boolean addMetricTypes(Collection<T> types) {
public <T extends MetricType> boolean addMetricTypes(Collection<T> types) { synchronized(metricTypes) { boolean added = metricTypes.addAll(types); if (added) syncReadOnly(); return added; } } public <T extends MetricType> void setMetricTypes(Collection<T> types) {
public boolean removeMetricType(MetricType type) { synchronized(metricTypes) { boolean removed = metricTypes.remove(type); if (removed) syncReadOnly(); return removed; } } public Set<MetricType> predefinedMetrics() {
public <T extends MetricType> boolean addMetricTypes(Collection<T> types) { synchronized(metricTypes) { boolean added = metricTypes.addAll(types); if (added) syncReadOnly(); return added; } } public <T extends MetricType> void setMetricTypes(Collection<T> types) {