public static class NodeEnvironment.NodePath
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.nio.file.FileStore |
fileStore
Cached FileStore from path
|
java.nio.file.Path |
indicesPath |
int |
majorDeviceNumber |
int |
minorDeviceNumber |
java.nio.file.Path |
path |
java.lang.Boolean |
spins
Cached result of Lucene's
IOUtils.spins on path. |
Constructor and Description |
---|
NodePath(java.nio.file.Path path) |
Modifier and Type | Method and Description |
---|---|
java.nio.file.Path |
resolve(Index index)
Resolves index directory against this NodePath
${data.paths}/nodes/{node.id}/indices/{index.uuid}
|
java.nio.file.Path |
resolve(ShardId shardId)
Resolves the given shards directory against this NodePath
${data.paths}/nodes/{node.id}/indices/{index.uuid}/{shard.id}
|
java.lang.String |
toString() |
public final java.nio.file.Path path
public final java.nio.file.Path indicesPath
public final java.nio.file.FileStore fileStore
public final java.lang.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 final int majorDeviceNumber
public final int minorDeviceNumber
public NodePath(java.nio.file.Path path) throws java.io.IOException
java.io.IOException
public java.nio.file.Path resolve(ShardId shardId)
public java.nio.file.Path resolve(Index index)
public java.lang.String toString()
toString
in class java.lang.Object