incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [2/3] git commit: Formatting change.
Date Sat, 18 May 2013 17:12:45 GMT
Formatting change.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/3afd09fc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/3afd09fc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/3afd09fc

Branch: refs/heads/0.1.5
Commit: 3afd09fca5a2156d0ba138d74a851a7f416fec2d
Parents: 844efc5
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Sat May 18 12:51:43 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Sat May 18 12:51:43 2013 -0400

----------------------------------------------------------------------
 .../indexserver/DistributedIndexServer.java        |   17 ++++++++-------
 1 files changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/3afd09fc/src/blur-core/src/main/java/org/apache/blur/manager/indexserver/DistributedIndexServer.java
----------------------------------------------------------------------
diff --git a/src/blur-core/src/main/java/org/apache/blur/manager/indexserver/DistributedIndexServer.java
b/src/blur-core/src/main/java/org/apache/blur/manager/indexserver/DistributedIndexServer.java
index 351bbdf..8710f8e 100644
--- a/src/blur-core/src/main/java/org/apache/blur/manager/indexserver/DistributedIndexServer.java
+++ b/src/blur-core/src/main/java/org/apache/blur/manager/indexserver/DistributedIndexServer.java
@@ -141,14 +141,15 @@ public class DistributedIndexServer extends AbstractIndexServer {
   }
 
   public void init() throws KeeperException, InterruptedException, IOException {
-    // evictions = Metrics.newMeter(new MetricName(ORG_APACHE_BLUR, CACHE,
-    // EVICTION), EVICTION, TimeUnit.SECONDS);
-    Metrics.newGauge(new MetricName(ORG_APACHE_BLUR, BLUR, TABLE_COUNT, _cluster), new AtomicLongGauge(_tableCount));
-    Metrics.newGauge(new MetricName(ORG_APACHE_BLUR, BLUR, INDEX_COUNT, _cluster), new AtomicLongGauge(_indexCount));
-    Metrics
-        .newGauge(new MetricName(ORG_APACHE_BLUR, BLUR, SEGMENT_COUNT, _cluster), new AtomicLongGauge(_segmentCount));
-    Metrics.newGauge(new MetricName(ORG_APACHE_BLUR, BLUR, INDEX_MEMORY_USAGE, _cluster),
new AtomicLongGauge(
-        _indexMemoryUsage));
+    MetricName tableCount = new MetricName(ORG_APACHE_BLUR, BLUR, TABLE_COUNT, _cluster);
+    MetricName indexCount = new MetricName(ORG_APACHE_BLUR, BLUR, INDEX_COUNT, _cluster);
+    MetricName segmentCount = new MetricName(ORG_APACHE_BLUR, BLUR, SEGMENT_COUNT, _cluster);
+    MetricName indexMemoryUsage = new MetricName(ORG_APACHE_BLUR, BLUR, INDEX_MEMORY_USAGE,
_cluster);
+    
+    Metrics.newGauge(tableCount, new AtomicLongGauge(_tableCount));
+    Metrics.newGauge(indexCount, new AtomicLongGauge(_indexCount));
+    Metrics.newGauge(segmentCount, new AtomicLongGauge(_segmentCount));
+    Metrics.newGauge(indexMemoryUsage, new AtomicLongGauge(_indexMemoryUsage));
 
     BlurUtil.setupZookeeper(_zookeeper, _cluster);
     _openerService = Executors.newThreadPool("shard-opener", _shardOpenerThreadCount);


Mime
View raw message