Class NodeEnvironment.NodePath

  • Enclosing class:
    NodeEnvironment

    public static class NodeEnvironment.NodePath
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      NodePath​(java.nio.file.Path path)  
    • Method Summary

      Modifier and Type Method 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • path

        public final java.nio.file.Path path
      • indicesPath

        public final java.nio.file.Path indicesPath
      • fileStore

        public final java.nio.file.FileStore fileStore
        Cached FileStore from path
      • majorDeviceNumber

        public final int majorDeviceNumber
      • minorDeviceNumber

        public final int minorDeviceNumber
    • Constructor Detail

      • NodePath

        public NodePath​(java.nio.file.Path path)
                 throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • resolve

        public 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}
      • resolve

        public java.nio.file.Path resolve​(Index index)
        Resolves index directory against this NodePath ${data.paths}/nodes/{node.id}/indices/{index.uuid}
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object