public class Environment extends Object
Constructor and Description |
---|
Environment() |
Environment(Settings settings) |
Modifier and Type | Method and Description |
---|---|
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() |
File[] |
repoFiles()
The shared filesystem repo locations.
|
static File |
resolve(File[] roots,
String path)
Tries to resolve the given path against the list of available roots.
|
static File |
resolve(File[] roots,
URI uri)
Tries to resolve the given path against the list of available roots.
|
URL |
resolveConfig(String path) |
String |
resolveConfigAndLoadToString(String path) |
File |
resolveRepoFile(String location)
Resolves the specified location against the list of configured repository roots
If the specified location doesn't match any of the roots, returns null.
|
URL |
resolveRepoURL(URL url)
Checks if the specified URL is pointing to the local file system and if it does, resolves the specified url
against the list of configured repository roots
If the specified url doesn't match any of the roots, returns null.
|
Settings |
settings()
The settings used to build this environment.
|
File |
workFile()
The work location, path to temp files.
|
File |
workWithClusterFile()
The work location with the cluster name as a sub directory.
|
public Environment()
public Environment(Settings settings)
public Settings settings()
public File homeFile()
public File workFile()
public File workWithClusterFile()
public File[] dataFiles()
public File[] dataWithClusterFiles()
public File[] repoFiles()
public File resolveRepoFile(String location)
public URL resolveRepoURL(URL url)
public File configFile()
public File pluginsFile()
public File logsFile()
public String resolveConfigAndLoadToString(String path) throws FailedToResolveConfigException, IOException
public URL resolveConfig(String path) throws FailedToResolveConfigException
FailedToResolveConfigException
public static File resolve(File[] roots, String path)
Copyright © 2009–2016. All rights reserved.