What will be correct setting for setup gateway using java?

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