summaryrefslogtreecommitdiffstats
path: root/fileacquirer/src/main/java/com/yahoo/filedistribution/fileacquirer/FileAcquirerImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'fileacquirer/src/main/java/com/yahoo/filedistribution/fileacquirer/FileAcquirerImpl.java')
-rw-r--r--fileacquirer/src/main/java/com/yahoo/filedistribution/fileacquirer/FileAcquirerImpl.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/fileacquirer/src/main/java/com/yahoo/filedistribution/fileacquirer/FileAcquirerImpl.java b/fileacquirer/src/main/java/com/yahoo/filedistribution/fileacquirer/FileAcquirerImpl.java
index fca4b206fc9..ab0f7521e7e 100644
--- a/fileacquirer/src/main/java/com/yahoo/filedistribution/fileacquirer/FileAcquirerImpl.java
+++ b/fileacquirer/src/main/java/com/yahoo/filedistribution/fileacquirer/FileAcquirerImpl.java
@@ -23,12 +23,15 @@ import java.io.File;
* @author Tony Vaagenes
*/
class FileAcquirerImpl implements FileAcquirer {
+
static final class FileDistributionErrorCode {
+
public static final int baseErrorCode = 0x10000;
public static final int baseFileProviderErrorCode = baseErrorCode + 0x1000;
public static final int fileReferenceDoesNotExists = baseFileProviderErrorCode;
public static final int fileReferenceRemoved = fileReferenceDoesNotExists + 1;
+
}
private static final Logger log = Logger.getLogger(FileAcquirerImpl.class.getName());
@@ -131,13 +134,10 @@ class FileAcquirerImpl implements FileAcquirer {
* given file reference. File references are produced by the
* config system.
*
- * @throws TimeoutException if the file or directory could not be
- * retrieved in time.
- * @throws FileReferenceDoesNotExistException if the file is no
- * longer available (due to reloading of config).
+ * @throws TimeoutException if the file or directory could not be retrieved in time.
+ * @throws FileReferenceDoesNotExistException if the file is no longer available (due to reloading of config).
*/
- public File waitFor(FileReference fileReference, long timeout, TimeUnit timeUnit)
- throws InterruptedException {
+ public File waitFor(FileReference fileReference, long timeout, TimeUnit timeUnit) throws InterruptedException {
Timer timer = new Timer(timeout, timeUnit);
do {
Target target = connection.getTarget(timer);