Class NodeEnvironment.NodeLock

java.lang.Object
org.elasticsearch.env.NodeEnvironment.NodeLock
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.core.Releasable
Enclosing class:
NodeEnvironment

public static class NodeEnvironment.NodeLock extends Object implements org.elasticsearch.core.Releasable
  • Constructor Details

    • NodeLock

      public NodeLock(int nodeId, org.apache.logging.log4j.Logger logger, Environment environment, org.elasticsearch.core.CheckedFunction<Path,Boolean,IOException> pathFunction) throws IOException
      Tries to acquire a node lock for a node id, throws IOException if it is unable to acquire it
      Parameters:
      pathFunction - function to check node path before attempt of acquiring a node lock
      Throws:
      IOException
  • Method Details