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)
localNodeId
public int localNodeId()
hasNodeFile
public boolean hasNodeFile()
nodeDataLocations
public File[] nodeDataLocations()
indicesLocations
public File[] indicesLocations()
indexLocations
public File[] indexLocations(Index index)
shardLocations
public File[] shardLocations(ShardId shardId)
findAllIndices
public Set<String> findAllIndices()
throws Exception
- Throws:
Exception
findAllShardIds
public Set<ShardId> findAllShardIds()
throws Exception
- Throws:
Exception
close
public void close()
Copyright © 2009-2012. All Rights Reserved.