summaryrefslogtreecommitdiffstats
path: root/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/hostinfo/StorageNodeStatsBridgeTest.java
diff options
context:
space:
mode:
authorGeir Storli <geirst@oath.com>2018-02-16 13:36:49 +0100
committerGeir Storli <geirst@oath.com>2018-02-19 16:43:17 +0100
commit077656a019587ea4951a0f4ec156b8bee04e7385 (patch)
tree5bfb49ec22e8fc3db7c3c9f59bc555cc69b7dc1e /clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/hostinfo/StorageNodeStatsBridgeTest.java
parent6744f7bcf76882700c6aebb25dccf17859399eb4 (diff)
Rename NodeMergeStats -> ContentNodeStats.
Diffstat (limited to 'clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/hostinfo/StorageNodeStatsBridgeTest.java')
-rw-r--r--clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/hostinfo/StorageNodeStatsBridgeTest.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/hostinfo/StorageNodeStatsBridgeTest.java b/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/hostinfo/StorageNodeStatsBridgeTest.java
index e335026a764..c9ce54ae3be 100644
--- a/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/hostinfo/StorageNodeStatsBridgeTest.java
+++ b/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/hostinfo/StorageNodeStatsBridgeTest.java
@@ -1,7 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.core.hostinfo;
-import com.yahoo.vespa.clustercontroller.core.NodeMergeStats;
+import com.yahoo.vespa.clustercontroller.core.ContentNodeStats;
import com.yahoo.vespa.clustercontroller.core.ContentClusterStats;
import com.yahoo.vespa.clustercontroller.core.StorageNodeStats;
import com.yahoo.vespa.clustercontroller.core.StorageNodeStatsContainer;
@@ -53,13 +53,13 @@ public class StorageNodeStatsBridgeTest {
String data = getJsonString();
HostInfo hostInfo = HostInfo.createHostInfo(data);
- ContentClusterStats storageMergeStats = StorageNodeStatsBridge.generate(hostInfo.getDistributor());
+ ContentClusterStats clusterStats = StorageNodeStatsBridge.generate(hostInfo.getDistributor());
int size = 0;
- for (NodeMergeStats mergeStats : storageMergeStats) {
- assertThat(mergeStats.getCopyingIn().getBuckets(), is(2L));
- assertThat(mergeStats.getCopyingOut().getBuckets(), is(4L));
- assertThat(mergeStats.getSyncing().getBuckets(), is(1L));
- assertThat(mergeStats.getMovingOut().getBuckets(), is(3L));
+ for (ContentNodeStats nodeStats : clusterStats) {
+ assertThat(nodeStats.getCopyingIn().getBuckets(), is(2L));
+ assertThat(nodeStats.getCopyingOut().getBuckets(), is(4L));
+ assertThat(nodeStats.getSyncing().getBuckets(), is(1L));
+ assertThat(nodeStats.getMovingOut().getBuckets(), is(3L));
size++;
}
assertThat(size, is(2));