Package org.elasticsearch.env
Class NodeEnvironment.NodePath
java.lang.Object
org.elasticsearch.env.NodeEnvironment.NodePath
- Enclosing class:
- NodeEnvironment
public static class NodeEnvironment.NodePath
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description java.nio.file.FileStorefileStoreCached FileStore from pathjava.nio.file.PathindicesPathintmajorDeviceNumberintminorDeviceNumberjava.nio.file.Pathpath -
Constructor Summary
Constructors Constructor Description NodePath(java.nio.file.Path path) -
Method Summary
Modifier and Type Method Description java.nio.file.Pathresolve(Index index)Resolves index directory against this NodePath ${data.paths}/nodes/{node.id}/indices/{index.uuid}java.nio.file.Pathresolve(ShardId shardId)Resolves the given shards directory against this NodePath ${data.paths}/nodes/{node.id}/indices/{index.uuid}/{shard.id}java.lang.StringtoString()
-
Field Details
-
path
public final java.nio.file.Path path -
indicesPath
public final java.nio.file.Path indicesPath -
fileStore
public final java.nio.file.FileStore fileStoreCached FileStore from path -
majorDeviceNumber
public final int majorDeviceNumber -
minorDeviceNumber
public final int minorDeviceNumber
-
-
Constructor Details
-
NodePath
public NodePath(java.nio.file.Path path) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
resolve
Resolves the given shards directory against this NodePath ${data.paths}/nodes/{node.id}/indices/{index.uuid}/{shard.id} -
resolve
Resolves index directory against this NodePath ${data.paths}/nodes/{node.id}/indices/{index.uuid} -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-