rendered paste body protected static final boolean isArchivedToXSlaves(LinkedRemoteFileInterface lrf,
int x) throws IncompleteDirectoryException, OfflineSlaveException {
HashSet<RemoteSlave> slaveSet = null;
if (lrf.getFiles().isEmpty()) {
return true;
}
try {
// try {
if (!lrf.lookupSFVFile().getStatus().isFinished()) {
logger.debug(lrf.getPath() + " is not complete");
throw new IncompleteDirectoryException(lrf.getPath() +
" is not complete");
// }
// } catch (FileStillTransferringException e) {
// logger.debug(lrf.getPath() + " is still transferrring it's SFV");
// throw new IncompleteDirectoryException(lrf.getPath() + " is still transferrring it's SFV");
// }
} catch (FileNotFoundException e) {
} catch (IOException e) {
} catch (NoAvailableSlaveException e) {
throw new OfflineSlaveException("SFV is offline", e);
}