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()
java.io.File
waitFor(com.yahoo.config.FileReference fileReference, long timeout, java.util.concurrent.TimeUnit timeUnit)
Returns the path to a file or directory corresponding to the given file reference.
-
-
-
Method Detail
-
waitFor
java.io.File waitFor(com.yahoo.config.FileReference fileReference, long timeout, java.util.concurrent.TimeUnit timeUnit) throws java.lang.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).java.lang.InterruptedException
-
shutdown
void shutdown()
-
-