org.elasticsearch.env
Class Environment

java.lang.Object
  extended by org.elasticsearch.env.Environment

public class Environment
extends java.lang.Object

The environment of where things exists.


Constructor Summary
Environment()
           
Environment(Settings settings)
           
 
Method Summary
 java.io.File configFile()
          The config location.
 java.io.File dataFile()
          The data location.
 java.io.File dataWithClusterFile()
          The data location with the cluster name as a sub directory.
 java.io.File homeFile()
          The home of the installation.
 java.io.File logsFile()
           
 java.io.File pluginsFile()
           
 java.net.URL resolveConfig(java.lang.String path)
           
 java.lang.String resolveConfigAndLoadToString(java.lang.String path)
           
 java.io.File workFile()
          The work location.
 java.io.File workWithClusterFile()
          The work location with the cluster name as a sub directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Environment

public Environment()

Environment

public Environment(Settings settings)
Method Detail

homeFile

public java.io.File homeFile()
The home of the installation.


workFile

public java.io.File workFile()
The work location.


workWithClusterFile

public java.io.File workWithClusterFile()
The work location with the cluster name as a sub directory.


dataFile

public java.io.File dataFile()
The data location.


dataWithClusterFile

public java.io.File dataWithClusterFile()
The data location with the cluster name as a sub directory.


configFile

public java.io.File configFile()
The config location.


pluginsFile

public java.io.File pluginsFile()

logsFile

public java.io.File logsFile()

resolveConfigAndLoadToString

public java.lang.String resolveConfigAndLoadToString(java.lang.String path)
                                              throws FailedToResolveConfigException,
                                                     java.io.IOException
Throws:
FailedToResolveConfigException
java.io.IOException

resolveConfig

public java.net.URL resolveConfig(java.lang.String path)
                           throws FailedToResolveConfigException
Throws:
FailedToResolveConfigException