2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.modelloader.notification;
23 import org.openecomp.sdc.api.consumer.IDistributionStatusMessage;
24 import org.openecomp.sdc.utils.DistributionStatusEnum;
26 public class DistributionStatusMsg implements IDistributionStatusMessage {
27 private DistributionStatusEnum status;
28 private String distributionId;
29 private String consumerId;
30 private String artifactUrl;
33 * Creates a new DistributionStatusMsg instance.
35 * @param status - The distribution status to be reported.
36 * @param distributionId - The identifier of the distribution who's status is being rported on.
37 * @param consumerId - Identifier of the consumer associated with the distribution.
38 * @param artifactUrl - Resource identifier for the artifact.
40 public DistributionStatusMsg(DistributionStatusEnum status,
41 String distributionId,
45 this.distributionId = distributionId;
46 this.consumerId = consumerId;
47 this.artifactUrl = artifactUrl;
51 public long getTimestamp() {
52 long currentTimeMillis = System.currentTimeMillis();
53 return currentTimeMillis;
57 public DistributionStatusEnum getStatus() {
62 public String getDistributionID() {
63 return distributionId;
67 public String getConsumerID() {
72 public String getArtifactURL() {