# What will be correct setting for setup gateway using java?

**URL:** <https://discuss.elastic.co/t/what-will-be-correct-setting-for-setup-gateway-using-java/3699>\
**Category:** Elasticsearch\
**Created:** [December 24, 2010, 12:04pm UTC](https://discuss.elastic.co/t/what-will-be-correct-setting-for-setup-gateway-using-java/3699 "2010-12-24T12:04:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [December 24, 2010, 12:04pm UTC](https://discuss.elastic.co/t/what-will-be-correct-setting-for-setup-gateway-using-java/3699/1 "2010-12-24T12:04:52Z")

</div>

Hi All

I am using following node settings to set the gateway type (File  
system based storage) as below:

Settings settings = ImmutableSettings.settingsBuilder()  
.put("gateway.type", "fs")  
.put("gateway.fs.location","c:  
\work")  
.put("index.shard.check\_index",  
true)  
.put("index.store.fs.memory.enabled",false)  
.put("index.mapper.dynamic",false)  
.put("index.number\_of\_shards", 1)  
.put("index.number\_of\_replicas",  
0)  
.build();

```
   // Here we are not using the settings and settings1 objects
            Node node =

```

NodeBuilder.nodeBuilder().settings(settings)  
.client(true)  
.local(false)  
.node().start();

when i am execute this code will creates data folder on my working  
directory(data\gateway\elasticsearch\metadata),but it does not contain  
anything.i want to know the following point :

1.created setting is correct for setting gateway.if not what will be  
correct one.  
2.Is there is any technique to know gateway is created on File system  
based storage.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:14am UTC](https://discuss.elastic.co/t/what-will-be-correct-setting-for-setup-gateway-using-java/3699/2 "2017-07-06T04:14:48Z")

</div>

Closed on July 6, 2017, 4:14am UTC


