2 * ============LICENSE_START======================================================= Copyright (C) 2019 Nordix
3 * Foundation. ================================================================================ Licensed under the
4 * Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may
5 * obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software
8 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
9 * either express or implied. See the License for the specific language governing permissions and limitations under the
12 * SPDX-License-Identifier: Apache-2.0 ============LICENSE_END=========================================================
15 package org.onap.so.asdc.installer;
17 import java.io.UnsupportedEncodingException;
18 import org.onap.sdc.api.IDistributionClient;
19 import org.onap.sdc.api.notification.IArtifactInfo;
20 import org.onap.sdc.api.notification.INotificationData;
21 import org.onap.sdc.api.notification.IResourceInstance;
22 import org.onap.sdc.api.results.IDistributionClientDownloadResult;
23 import org.onap.so.asdc.client.exceptions.ArtifactInstallerException;
26 * This class represents the PNF resource structure.
28 public class PnfResourceStructure extends ResourceStructure {
30 public PnfResourceStructure(INotificationData notificationData, IResourceInstance resourceInstance) {
31 super(notificationData, resourceInstance);
32 this.resourceType = ResourceType.PNF_RESOURCE;
36 public void addArtifactToStructure(IDistributionClient distributionClient, IArtifactInfo artifactinfo,
37 IDistributionClientDownloadResult clientResult) throws UnsupportedEncodingException {
42 public void prepareInstall() throws ArtifactInstallerException {