Class NodeEnvironment.NodeLock

org.elasticsearch.env.NodeEnvironment.NodeLock
All Implemented Interfaces:
, , org.elasticsearch.core.Releasable
Enclosing class:
NodeEnvironment

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

    Constructors
    Constructor
    Description
    NodeLock​(int nodeId, org.apache.logging.log4j.Logger logger, Environment environment, org.elasticsearch.core.CheckedFunction<,​,​> pathFunction)
    Tries to acquire a node lock for a node id, throws IOException if it is unable to acquire it
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • NodeLock

      public NodeLock(int nodeId, org.apache.logging.log4j.Logger logger, Environment environment, org.elasticsearch.core.CheckedFunction<,​,​> pathFunction) throws
      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:
  • Method Details

    • getNodePaths

      public NodeEnvironment.NodePath[] getNodePaths()
    • close

      public void close()
      Specified by:
       in interface 
      Specified by:
       in interface 
      Specified by:
      close in interface org.elasticsearch.core.Releasable