net.spy.memcached.metrics.MetricCollector Java Examples
The following examples show how to use
net.spy.memcached.metrics.MetricCollector.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MemcachedConnectionFactory.java From kylin-on-parquet-v2 with Apache License 2.0 | 5 votes |
@Override public MetricCollector getMetricCollector() { String enableMetrics = metricsConfig.get("memcached.enabled"); if (enableMetrics().equals(MetricType.OFF) || enableMetrics == null || "false".equalsIgnoreCase(enableMetrics)) { getLogger().debug("Memcached metrics collection disabled."); return new NoopMetricCollector(); } else { getLogger().info("Memcached metrics collection enabled (Profile " + enableMetrics() + ")."); return new MemcachedMetrics(); } }
Example #2
Source File: MemcachedConnectionFactory.java From kylin with Apache License 2.0 | 5 votes |
@Override public MetricCollector getMetricCollector() { String enableMetrics = metricsConfig.get("memcached.enabled"); if (enableMetrics().equals(MetricType.OFF) || enableMetrics == null || "false".equalsIgnoreCase(enableMetrics)) { getLogger().debug("Memcached metrics collection disabled."); return new NoopMetricCollector(); } else { getLogger().info("Memcached metrics collection enabled (Profile " + enableMetrics() + ")."); return new MemcachedMetrics(); } }