org.elasticsearch.env
Class NodeEnvironment

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.env.NodeEnvironment

public class NodeEnvironment
extends AbstractComponent


Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
NodeEnvironment(Settings settings, Environment environment)
           
 
Method Summary
 void close()
           
 boolean hasNodeFile()
           
 java.io.File[] indexLocations(Index index)
           
 java.io.File[] indicesLocations()
           
 int localNodeId()
           
 java.io.File[] nodeDataLocations()
           
 java.io.File[] shardLocations(ShardId shardId)
           
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeEnvironment

@Inject
public NodeEnvironment(Settings settings,
                              Environment environment)
                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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()