blob: ef47f5e665a2669a4b503d13d02b6722ebd1a146 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package org.openecomp.sdc.be.components.distribution.engine.report;
import javax.annotation.Resource;
import org.openecomp.sdc.be.components.distribution.engine.DistributionStatusNotification;
import org.openecomp.sdc.be.components.distribution.engine.rest.MSORestClient;
import org.springframework.stereotype.Component;
@Component
public class MsoDistributionCompleteReporter implements DistributionCompleteReporter {
@Resource
private MSORestClient msoClient;
@Override
public void reportDistributionComplete(DistributionStatusNotification distributionStatusNotification) {
msoClient.notifyDistributionComplete(distributionStatusNotification.getDistributionID(), distributionStatusNotification.getStatus(), distributionStatusNotification.getErrorReason());
}
}
|