fe0c144a1a414958965afe205416a52e009c920e
[ccsdk/features.git] /
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
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
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
15  * the License.
16  * ============LICENSE_END==========================================================================
17  ******************************************************************************/
18 /**
19  *
20  */
21 package org.onap.ccsdk.features.sdnr.wt.devicemanager.base.netconf;
22
23 import org.onap.ccsdk.features.sdnr.wt.devicemanager.base.internalTypes.InventoryInformation;
24 import org.onap.ccsdk.features.sdnr.wt.devicemanager.base.netconf.container.AllPm;
25 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
26 import org.opendaylight.controller.md.sal.binding.api.MountPoint;
27 import org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.core.model.rev170320.NetworkElement;
28 import org.slf4j.Logger;
29 import org.slf4j.LoggerFactory;
30
31 /**
32  * @author herbert
33  *
34  */
35 @SuppressWarnings("deprecation")
36 public class ONFCoreNetworkElementEmpty implements ONFCoreNetworkElementRepresentation {
37
38     private static final Logger LOG = LoggerFactory.getLogger(ONFCoreNetworkElementEmpty.class);
39
40     private String mountPointNodeName = "";
41
42
43     ONFCoreNetworkElementEmpty(String mountPointNodeName) {
44         LOG.info("Create {}",ONFCoreNetworkElementEmpty.class.getSimpleName());
45         this.mountPointNodeName = mountPointNodeName;
46     }
47
48     @Override
49     public void initialReadFromNetworkElement() {
50     }
51
52     @Override
53     public String getMountPointNodeName() {
54         return mountPointNodeName;
55     }
56
57         @Override
58         public String getMountpoint() {
59                 return mountPointNodeName;
60         }
61
62     @Override
63     public void resetPMIterator() {
64     }
65
66     @Override
67     public boolean hasNext() {
68         return false;
69     }
70
71     @Override
72     public void next() {
73     }
74
75     @Override
76     public AllPm getHistoricalPM() {
77         return AllPm.getEmpty();
78     }
79
80     @Override
81     public String pmStatusToString() {
82         return this.getClass().getSimpleName();
83     }
84
85     @Override
86     public int removeAllCurrentProblemsOfNode() {
87         return 0;
88     }
89
90     @Override
91     public void doRegisterMicrowaveEventListener(MountPoint mointPoint) {
92         //Do nothing
93     }
94
95     @Override
96     public void prepareCheck() {
97         //Do nothing here
98     }
99
100     @Override
101     public boolean checkIfConnectionToMediatorIsOk() {
102         return false;
103     }
104
105     @Override
106     public boolean checkIfConnectionToNeIsOk() {
107         return false;
108     }
109
110     @Override
111     public InventoryInformation getInventoryInformation() {
112         return InventoryInformation.getDefault();
113     }
114
115     @Override
116     public InventoryInformation getInventoryInformation(String layerProtocolFilter) {
117         return InventoryInformation.getDefault();
118     }
119
120         @Override
121         public DataBroker getDataBroker() {
122                 return null;
123         }
124
125         @Override
126         public NetworkElement getOptionalNetworkElement() {
127                 return null;
128         }
129
130 }