org.elasticsearch.env
Class Environment

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

public class Environment
extends Object

The environment of where things exists.


Constructor Summary
Environment()
           
Environment(Settings settings)
           
 
Method Summary
 File configFile()
          The config location.
 File[] dataFiles()
          The data location.
 File[] dataWithClusterFiles()
          The data location with the cluster name as a sub directory.
 File homeFile()
          The home of the installation.
 File logsFile()
           
 File pluginsFile()
           
 URL resolveConfig(String path)
           
 String resolveConfigAndLoadToString(String path)
           
 Settings settings()
          The settings used to build this environment.
 File workFile()
          The work location.
 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

settings

public Settings settings()
The settings used to build this environment.


homeFile

public File homeFile()
The home of the installation.


workFile

public File workFile()
The work location.


workWithClusterFile

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


dataFiles

public File[] dataFiles()
The data location.


dataWithClusterFiles

public File[] dataWithClusterFiles()
The data location with the cluster name as a sub directory.


configFile

public File configFile()
The config location.


pluginsFile

public File pluginsFile()

logsFile

public File logsFile()

resolveConfigAndLoadToString

public String resolveConfigAndLoadToString(String path)
                                    throws FailedToResolveConfigException,
                                           IOException
Throws:
FailedToResolveConfigException
IOException

resolveConfig

public URL resolveConfig(String path)
                  throws FailedToResolveConfigException
Throws:
FailedToResolveConfigException


Copyright © 2009-2012. All Rights Reserved.