# Node class, Client interface and RestHighLevelClient

**URL:** <https://discuss.elastic.co/t/node-class-client-interface-and-resthighlevelclient/248665>\
**Category:** Elasticsearch\
**Created:** [September 15, 2020, 11:26am UTC](https://discuss.elastic.co/t/node-class-client-interface-and-resthighlevelclient/248665 "2020-09-15T11:26:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 15, 2020, 11:57am UTC](https://discuss.elastic.co/t/node-class-client-interface-and-resthighlevelclient/248665/2 "2020-09-15T11:57:16Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.

> [@Pete\_Watcharawit](#):
>
> How do I gracefully replace this with the new RestHighLevelClient class?

Have a look at [Initialization | Java REST Client [7.17] | Elastic](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-getting-started-initialization.html)

> [@Pete\_Watcharawit](#):
>
> Is there a way to convert RestHighLevelClient into a Client object to store it in Map\<String, Client\> instance?

Why would you do this? It's threadsafe so you need only one instance I believe.

---

_[View the full topic](https://discuss.elastic.co/t/node-class-client-interface-and-resthighlevelclient/248665)._
