@Override public void copyExplodedContent(byte[] hash, Path target) throws ExplodedContentException { contentRepository.copyExplodedContent(hash, target); }
@Override public void copyExplodedContent(byte[] hash, Path target) throws ExplodedContentException { contentRepository.copyExplodedContent(hash, target); }
@Override public void run() { try { CountDownLatch latch = asyncCleanup(root); if (latch != null) { try { if (!latch.await(60, TimeUnit.SECONDS)) { // TODO proper message context.failed(new StartException()); return; } } catch (InterruptedException e) { Thread.currentThread().interrupt(); // TODO proper message context.failed(new StartException()); return; } } Files.createDirectories(root.getParent()); contentRepositorySupplier.get().copyExplodedContent(hash, root); deploymentRoot = root; virtualFileConsumer.accept(VFS.getChild(deploymentRoot.toAbsolutePath().toString())); context.complete(); } catch (IOException | ExplodedContentException e) { context.failed(new StartException(e)); } } };
@Override public void run() { try { CountDownLatch latch = asyncCleanup(root); if (latch != null) { try { if (!latch.await(60, TimeUnit.SECONDS)) { // TODO proper message context.failed(new StartException()); return; } } catch (InterruptedException e) { Thread.currentThread().interrupt(); // TODO proper message context.failed(new StartException()); return; } } Files.createDirectories(root.getParent()); contentRepositoryInjectedValue.getValue().copyExplodedContent(hash, root); deploymentRoot = root; context.complete(); } catch (IOException | ExplodedContentException e) { context.failed(new StartException(e)); } } };