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()
           
 Set<String> findAllIndices()
           
 Set<ShardId> findAllShardIds()
           
 boolean hasNodeFile()
           
 File[] indexLocations(Index index)
           
 File[] indicesLocations()
           
 int localNodeId()
           
 File[] nodeDataLocations()
           
 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)
Method Detail

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.