Search in sources :

Example 1 with FingerprintRequest

use of com.sequenceiq.cloudbreak.orchestrator.salt.domain.FingerprintRequest in project cloudbreak by hortonworks.

the class FingerprintFromSbCollector method collectFingerprintFromMinions.

public FingerprintsResponse collectFingerprintFromMinions(SaltConnector sc, List<Minion> minionsToAccept) throws CloudbreakOrchestratorFailedException {
    FingerprintsResponse fingerprintsResponse;
    try {
        fingerprintsResponse = sc.collectFingerPrints(new FingerprintRequest(minionsToAccept));
    } catch (Exception e) {
        LOGGER.error("Couldn't collect fingerprints for minions: {}", minionsToAccept, e);
        throw new CloudbreakOrchestratorFailedException("Couldn't collect fingerprints for minions", e);
    }
    validateFingerprintResponse(minionsToAccept, fingerprintsResponse);
    return fingerprintsResponse;
}
Also used : CloudbreakOrchestratorFailedException(com.sequenceiq.cloudbreak.orchestrator.exception.CloudbreakOrchestratorFailedException) FingerprintsResponse(com.sequenceiq.cloudbreak.orchestrator.salt.domain.FingerprintsResponse) FingerprintRequest(com.sequenceiq.cloudbreak.orchestrator.salt.domain.FingerprintRequest) CloudbreakOrchestratorFailedException(com.sequenceiq.cloudbreak.orchestrator.exception.CloudbreakOrchestratorFailedException)

Aggregations

CloudbreakOrchestratorFailedException (com.sequenceiq.cloudbreak.orchestrator.exception.CloudbreakOrchestratorFailedException)1 FingerprintRequest (com.sequenceiq.cloudbreak.orchestrator.salt.domain.FingerprintRequest)1 FingerprintsResponse (com.sequenceiq.cloudbreak.orchestrator.salt.domain.FingerprintsResponse)1