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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
shutdown()
File
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 Detail
-
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.FileReferenceDoesNotExistException
- if the file is no longer available(due to reloading of config).InterruptedException
-
shutdown
void shutdown()
-
-