Interface FileAcquirer

All Known Implementing Classes:
MockFileAcquirer

public interface FileAcquirer
Retrieves the path to a file or directory on the local file system that has been transferred with the vespa file distribution mechanism.
Author:
Tony Vaagenes
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    waitFor(com.yahoo.config.FileReference fileReference, long timeout, TimeUnit timeUnit)
    Returns the path to a file or directory corresponding to the given file reference.
  • Method Details

    • waitFor

      File waitFor(com.yahoo.config.FileReference fileReference, long timeout, TimeUnit timeUnit) throws InterruptedException
      Returns the path to a file or directory corresponding to the given file reference. File references are produced by the config system.
      Throws:
      TimeoutException - if the file or directory could not be retrieved in time.
      com.yahoo.vespa.config.FileReferenceDoesNotExistException - if the file is no longer available(due to reloading of config).
      InterruptedException
    • shutdown

      void shutdown()