org.elasticsearch.env
Class NodeEnvironment
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.env.NodeEnvironment
public class NodeEnvironment
- extends AbstractComponent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeEnvironment
@Inject
public NodeEnvironment(Settings settings,
Environment environment)
throws java.io.IOException
- Throws:
java.io.IOException
localNodeId
public int localNodeId()
hasNodeFile
public boolean hasNodeFile()
nodeDataLocations
public java.io.File[] nodeDataLocations()
indicesLocations
public java.io.File[] indicesLocations()
indexLocations
public java.io.File[] indexLocations(Index index)
shardLocations
public java.io.File[] shardLocations(ShardId shardId)
close
public void close()