2 * Copyright © 2019 Bell Canada
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.onap.ccsdk.cds.sdclistener.status;
19 import org.onap.sdc.api.consumer.IComponentDoneStatusMessage;
20 import org.onap.sdc.api.consumer.IDistributionStatusMessage;
21 import org.onap.sdc.utils.DistributionStatusEnum;
23 public class ComponentStatusMessage implements IComponentDoneStatusMessage, IDistributionStatusMessage {
25 private String componentName;
27 private String consumerID;
29 private String distributionID;
31 private DistributionStatusEnum status;
33 private long timeStamp;
35 private String artifactUrl;
38 public String getDistributionID() {
39 return distributionID;
43 public DistributionStatusEnum getStatus() {
48 public String getConsumerID() {
53 public String getComponentName() {
58 public String getArtifactURL() {
59 return getArtifactUrl();
63 public long getTimestamp() {
64 return getTimeStamp();
67 public void setComponentName(String componentName) {
68 this.componentName = componentName;
71 public void setConsumerID(String consumerID) {
72 this.consumerID = consumerID;
75 public void setDistributionID(String distributionID) {
76 this.distributionID = distributionID;
79 public void setStatus(DistributionStatusEnum status) {
83 public long getTimeStamp() {
87 public void setTimeStamp(long timeStamp) {
88 this.timeStamp = timeStamp;
91 public String getArtifactUrl() {
95 public void setArtifactUrl(String artifactUrl) {
96 this.artifactUrl = artifactUrl;