1 /*******************************************************************************
2 * ============LICENSE_START========================================================================
3 * ONAP : ccsdk feature sdnr wt
4 * =================================================================================================
5 * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
6 * =================================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
8 * in compliance with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software distributed under the License
13 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14 * or implied. See the License for the specific language governing permissions and limitations under
16 * ============LICENSE_END==========================================================================
17 ******************************************************************************/
21 package org.onap.ccsdk.features.sdnr.wt.devicemanager.base.onfcore;
23 import java.util.Optional;
24 import org.onap.ccsdk.features.sdnr.wt.devicemanager.NetworkElementService;
25 import org.onap.ccsdk.features.sdnr.wt.devicemanager.base.onfcore.container.AllPm;
26 import org.onap.ccsdk.features.sdnr.wt.devicemanager.legacy.InventoryInformation;
27 import org.opendaylight.mdsal.binding.api.DataBroker;
28 import org.opendaylight.mdsal.binding.api.MountPoint;
29 import org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.core.model.rev170320.NetworkElement;
30 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.data.provider.rev190801.NetworkElementDeviceType;
31 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
32 import org.slf4j.Logger;
33 import org.slf4j.LoggerFactory;
39 public class ONFCoreNetworkElementEmpty implements ONFCoreNetworkElementRepresentation {
41 private static final Logger LOG = LoggerFactory.getLogger(ONFCoreNetworkElementEmpty.class);
43 private final String mountPointNodeName;
44 private final NodeId nodeId;
46 ONFCoreNetworkElementEmpty(String mountPointNodeName) {
47 LOG.info("Create {}",ONFCoreNetworkElementEmpty.class.getSimpleName());
48 this.mountPointNodeName = mountPointNodeName;
49 this.nodeId = new NodeId(mountPointNodeName);
53 public void initialReadFromNetworkElement() {
57 public String getMountPointNodeName() {
58 return mountPointNodeName;
62 public String getMountpoint() {
63 return mountPointNodeName;
67 public void resetPMIterator() {
71 public boolean hasNext() {
80 public AllPm getHistoricalPM() {
81 return AllPm.getEmpty();
85 public String pmStatusToString() {
86 return this.getClass().getSimpleName();
90 public int removeAllCurrentProblemsOfNode() {
95 public void doRegisterEventListener(MountPoint mointPoint) {
100 public void prepareCheck() {
105 public boolean checkIfConnectionToMediatorIsOk() {
110 public boolean checkIfConnectionToNeIsOk() {
115 public InventoryInformation getInventoryInformation() {
116 return InventoryInformation.getDefault();
120 public InventoryInformation getInventoryInformation(String layerProtocolFilter) {
121 return InventoryInformation.getDefault();
125 public DataBroker getDataBroker() {
130 public NetworkElement getOptionalNetworkElement() {
135 public NetworkElementDeviceType getDeviceType() {
136 return NetworkElementDeviceType.Unknown;
140 public void register() {
144 public void deregister() {
148 public NodeId getNodeId() {
153 public <L extends NetworkElementService> Optional<L> getService(Class<L> clazz) {
154 return Optional.empty();
158 public void warmstart() {