2 * ============LICENSE_START========================================================================
\r
3 * ONAP : tr-069-adapter
\r
4 * =================================================================================================
\r
5 * Copyright (C) 2020 CommScope Inc Intellectual Property.
\r
6 * =================================================================================================
\r
7 * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,
\r
8 * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
\r
9 * may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
\r
14 * either express or implied. See the License for the specific language governing permissions and
\r
15 * limitations under the License.
\r
16 * ===============LICENSE_END=======================================================================
\r
19 package org.commscope.tr069adapter.netconf.config;
\r
21 import org.springframework.boot.context.properties.ConfigurationProperties;
\r
22 import org.springframework.context.annotation.Configuration;
\r
25 @ConfigurationProperties(prefix = "config")
\r
26 public class NetConfServerProperties {
\r
28 private Integer defaultNetconfStartPort = 17830;
\r
29 private Integer defaultMaxServers = 200;
\r
31 private String requestTimeOut;
\r
32 private String mapperPath;
\r
33 private String netconfServerRestPort;
\r
34 private String netconfServersStartPort;
\r
35 private String maxNumOfNetconfServers;
\r
36 private String netconfServerIP;
\r
37 private String schemaDirPath;
\r
38 private String vesURI;
\r
40 public String getRequestTimeOut() {
\r
41 return requestTimeOut;
\r
44 public void setRequestTimeOut(String requestTimeOut) {
\r
45 this.requestTimeOut = requestTimeOut;
\r
48 public String getMapperPath() {
\r
52 public void setMapperPath(String mapperPath) {
\r
53 this.mapperPath = mapperPath;
\r
56 public String getNetconfServerRestPort() {
\r
57 return netconfServerRestPort;
\r
60 public void setNetconfServerRestPort(String netconfServerRestPort) {
\r
61 this.netconfServerRestPort = netconfServerRestPort;
\r
64 public String getMaxNumOfNetconfServers() {
\r
65 return maxNumOfNetconfServers;
\r
68 public void setMaxNumOfNetconfServers(String maxNumOfNetconfServers) {
\r
69 this.maxNumOfNetconfServers = maxNumOfNetconfServers;
\r
72 public String getNetconfServersStartPort() {
\r
73 return netconfServersStartPort;
\r
76 public void setNetconfServersStartPort(String netconfServersStartPort) {
\r
77 this.netconfServersStartPort = netconfServersStartPort;
\r
80 public Integer getDefaultNetconfStartPort() {
\r
81 return defaultNetconfStartPort;
\r
84 public void setDefaultNetconfStartPort(Integer defaultPort) {
\r
85 defaultNetconfStartPort = defaultPort;
\r
88 public Integer getDefaultMaxServers() {
\r
89 return defaultMaxServers;
\r
92 public void setDefaultMaxServers(Integer maxServers) {
\r
93 defaultMaxServers = maxServers;
\r
96 public String getNetconfServerIP() {
\r
97 return netconfServerIP;
\r
100 public void setNetconfServerIP(String netconfServerIP) {
\r
101 this.netconfServerIP = netconfServerIP;
\r
104 public String getSchemaDirPath() {
\r
105 return schemaDirPath;
\r
108 public void setSchemaDirPath(String schemaDirPath) {
\r
109 this.schemaDirPath = schemaDirPath;
\r
112 public String getVesURI() {
\r
116 public void setVesURI(String vesURI) {
\r
117 this.vesURI = vesURI;
\r