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 indexLocation(Index index)
           
 int localNodeId()
           
 java.io.File nodeDataLocation()
           
 java.io.File shardLocation(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()

nodeDataLocation

public java.io.File nodeDataLocation()

indexLocation

public java.io.File indexLocation(Index index)

shardLocation

public java.io.File shardLocation(ShardId shardId)

close

public void close()