public static class NodeEnvironment.NodePath extends Object
Modifier and Type | Field and Description |
---|---|
FileStore |
fileStore
Cached FileStore from path
|
Path |
indicesPath |
Path |
path |
Boolean |
spins
Cached result of Lucene's
IOUtils.spins on path. |
Constructor and Description |
---|
NodePath(Path path,
Environment environment) |
Modifier and Type | Method and Description |
---|---|
Path |
resolve(Index index)
Resolves the given indexes directory against this NodePath
|
Path |
resolve(ShardId shardId)
Resolves the given shards directory against this NodePath
|
String |
toString() |
public final Path path
public final Path indicesPath
public final FileStore fileStore
public final Boolean spins
IOUtils.spins
on path. This is a trilean value: null means we could not determine it (we are
not running on Linux, or we hit an exception trying), True means the device possibly spins and False means it does not.public NodePath(Path path, Environment environment) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.