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()
nodeDataLocation
public java.io.File nodeDataLocation()
indicesLocation
public java.io.File indicesLocation()
indexLocation
public java.io.File indexLocation(Index index)
shardLocation
public java.io.File shardLocation(ShardId shardId)
close
public void close()