Remove DiscoveryNode#name in favour of existing DiscoveryNode#getName

Original commit: elastic/x-pack-elasticsearch@5907a80818
This commit is contained in:
javanna 2016-03-30 14:47:50 +02:00 committed by Luca Cavanna
parent 7689141909
commit 9842e649f7
3 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ public class ClusterStateTests extends MarvelIntegTestCase {
logger.debug("--> ensure that the 'nodes' attributes of the cluster state document is not indexed");
assertHitCount(client().prepareSearch().setSize(0)
.setTypes(ClusterStateResolver.TYPE)
.setQuery(matchQuery("cluster_state.nodes." + nodes.masterNodeId() + ".name", nodes.masterNode().name())).get(), 0L);
.setQuery(matchQuery("cluster_state.nodes." + nodes.masterNodeId() + ".name", nodes.masterNode().getName())).get(), 0L);
}
public void testClusterStateNodes() throws Exception {

View File

@ -54,7 +54,7 @@ public class ClearRealmCacheResponse extends BaseNodesResponse<ClearRealmCacheRe
builder.startObject("nodes");
for (ClearRealmCacheResponse.Node node: getNodes()) {
builder.startObject(node.getNode().getId());
builder.field("name", node.getNode().name());
builder.field("name", node.getNode().getName());
builder.endObject();
}
builder.endObject();

View File

@ -54,7 +54,7 @@ public class ClearRolesCacheResponse extends BaseNodesResponse<ClearRolesCacheRe
builder.startObject("nodes");
for (ClearRolesCacheResponse.Node node: getNodes()) {
builder.startObject(node.getNode().getId());
builder.field("name", node.getNode().name());
builder.field("name", node.getNode().getName());
builder.endObject();
}
builder.endObject();