use of com.sequenceiq.cloudbreak.orchestrator.salt.poller.SaltUpload in project cloudbreak by hortonworks.
the class SaltOrchestrator method uploadFileToGateways.
private void uploadFileToGateways(SaltConnector saltConnector, Set<String> targets, ExitCriteriaModel exitCriteriaModel, String path, String fileName, byte[] content) throws CloudbreakOrchestratorFailedException {
try {
OrchestratorBootstrap saltUpload = new SaltUpload(saltConnector, targets, path, fileName, content);
Callable<Boolean> saltUploadRunner = runner(saltUpload, exitCriteria, exitCriteriaModel);
Future<Boolean> saltUploadRunnerFuture = parallelOrchestratorComponentRunner.submit(saltUploadRunner);
saltUploadRunnerFuture.get();
} catch (Exception e) {
LOGGER.error("Error occurred during file distribute to gateway nodes", e);
throw new CloudbreakOrchestratorFailedException(e);
}
}
Aggregations