Remove DiscoveryNode#name in favour of existing DiscoveryNode#getName
Original commit: elastic/x-pack-elasticsearch@5907a80818
This commit is contained in:
parent
7689141909
commit
9842e649f7
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue