Remove outdated doc for A1 Adaptor
[integration.git] / test / mocks / masspnfsim / pnf-sim-lightweight / src / main / java / org / onap / pnfsimulator / netconfmonitor / NetconfMonitorService.java
1 /// *
2 // * ============LICENSE_START=======================================================
3 // * PNF-REGISTRATION-HANDLER
4 // * ================================================================================ Copyright (C)
5 // * 2018 NOKIA Intellectual Property. All rights reserved.
6 // * ================================================================================ Licensed under
7 // * the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
8 // * 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
13 /// License
14 // * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
15 /// express
16 // * or implied. See the License for the specific language governing permissions and limitations
17 /// under
18 // * the License. ============LICENSE_END=========================================================
19 // */
20 //
21 // package org.onap.pnfsimulator.netconfmonitor;
22 //
23 // import com.tailf.jnc.JNCException;
24 // import java.io.IOException;
25 // import java.util.Timer;
26 // import org.onap.pnfsimulator.netconfmonitor.netconf.NetconfConfigurationCache;
27 // import org.onap.pnfsimulator.netconfmonitor.netconf.NetconfConfigurationReader;
28 // import org.onap.pnfsimulator.netconfmonitor.netconf.NetconfConfigurationWriter;
29 // import org.slf4j.Logger;
30 // import org.slf4j.LoggerFactory;
31 // import org.springframework.beans.factory.annotation.Autowired;
32 //
33 //// @Service
34 // public class NetconfMonitorService {
35 // private static final Logger LOGGER = LoggerFactory.getLogger(NetconfMonitorService.class);
36 // private static final long timePeriod = 1000L;
37 // private static final long startDelay = 0;
38 //
39 // private Timer timer;
40 // private NetconfConfigurationReader reader;
41 // private NetconfConfigurationWriter writer;
42 // private NetconfConfigurationCache cache;
43 //
44 // @Autowired
45 // public NetconfMonitorService(Timer timer, NetconfConfigurationReader reader,
46 /// NetconfConfigurationWriter writer,
47 // NetconfConfigurationCache cache) {
48 // this.timer = timer;
49 // this.reader = reader;
50 // this.writer = writer;
51 // this.cache = cache;
52 // }
53 //
54 // // @PostConstruct
55 // public void start() {
56 // setStartConfiguration();
57 // NetconfConfigurationCheckingTask task = new NetconfConfigurationCheckingTask(reader, writer,
58 /// cache);
59 // timer.scheduleAtFixedRate(task, startDelay, timePeriod);
60 // }
61 //
62 // private void setStartConfiguration() {
63 // try {
64 // String configuration = reader.read();
65 // writer.writeToFile(configuration);
66 // cache.update(configuration);
67 // } catch (IOException | JNCException e) {
68 // LOGGER.warn("Error during configuration reading: {}", e.getMessage());
69 // }
70 // }
71 // }