Class MockFileAcquirer
java.lang.Object
com.yahoo.filedistribution.fileacquirer.MockFileAcquirer
- All Implemented Interfaces:
FileAcquirer
For use when testing searchers that uses file distribution.
- Author:
- Tony Vaagenes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileAcquirerreturnFile(File file) Creates a FileAcquirer that always returns the given file.static FileAcquirerreturnFiles(Map<String, File> files) Creates a FileAcquirer that maps from fileReference.value to a file.voidshutdown()static FileAcquirerCreates a FileAcquirer that throws TimeoutExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.yahoo.filedistribution.fileacquirer.FileAcquirer
waitFor
-
Constructor Details
-
MockFileAcquirer
public MockFileAcquirer()
-
-
Method Details
-
returnFile
Creates a FileAcquirer that always returns the given file. -
returnFiles
Creates a FileAcquirer that maps from fileReference.value to a file. -
throwTimeoutException
Creates a FileAcquirer that throws TimeoutException -
shutdown
public void shutdown()- Specified by:
shutdownin interfaceFileAcquirer
-