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("index.number_of_shards", 1)

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


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.