738f4a93948d25d7a940c21a70301d84b82b08ad
[oam/tr069-adapter.git] / netconf-server / src / main / java / org / commscope / tr069adapter / netconf / config / NetConfServerProperties.java
1 /*\r
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
10  *\r
11  * http://www.apache.org/licenses/LICENSE-2.0\r
12  *\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
17  */\r
18 \r
19 package org.commscope.tr069adapter.netconf.config;\r
20 \r
21 import org.springframework.boot.context.properties.ConfigurationProperties;\r
22 import org.springframework.context.annotation.Configuration;\r
23 \r
24 @Configuration\r
25 @ConfigurationProperties(prefix = "config")\r
26 public class NetConfServerProperties {\r
27 \r
28   private Integer defaultNetconfStartPort = 17830;\r
29   private Integer defaultMaxServers = 200;\r
30 \r
31   private String requestTimeOut;\r
32   private String mapperPath;\r
33   private String netconfServerRestPort;\r
34   private String netconfServersStartPort;\r
35   private String netconfServersEndPort;\r
36   private String maxNumOfNetconfServers;\r
37   private String netconfServerIP;\r
38   private String schemaDirPath;\r
39 \r
40   public String getRequestTimeOut() {\r
41     return requestTimeOut;\r
42   }\r
43 \r
44   public void setRequestTimeOut(String requestTimeOut) {\r
45     this.requestTimeOut = requestTimeOut;\r
46   }\r
47 \r
48   public String getMapperPath() {\r
49     return mapperPath;\r
50   }\r
51 \r
52   public void setMapperPath(String mapperPath) {\r
53     this.mapperPath = mapperPath;\r
54   }\r
55 \r
56   public String getNetconfServerRestPort() {\r
57     return netconfServerRestPort;\r
58   }\r
59 \r
60   public void setNetconfServerRestPort(String netconfServerRestPort) {\r
61     this.netconfServerRestPort = netconfServerRestPort;\r
62   }\r
63 \r
64   public String getMaxNumOfNetconfServers() {\r
65     return maxNumOfNetconfServers;\r
66   }\r
67 \r
68   public void setMaxNumOfNetconfServers(String maxNumOfNetconfServers) {\r
69     this.maxNumOfNetconfServers = maxNumOfNetconfServers;\r
70   }\r
71 \r
72   public String getNetconfServersStartPort() {\r
73     return netconfServersStartPort;\r
74   }\r
75 \r
76   public void setNetconfServersStartPort(String netconfServersStartPort) {\r
77     this.netconfServersStartPort = netconfServersStartPort;\r
78   }\r
79 \r
80   public String getNetconfServersEndPort() {\r
81     return netconfServersEndPort;\r
82   }\r
83 \r
84   public void setNetconfServersEndPort(String netconfServersEndPort) {\r
85     this.netconfServersEndPort = netconfServersEndPort;\r
86   }\r
87 \r
88   public Integer getDefaultNetconfStartPort() {\r
89     return defaultNetconfStartPort;\r
90   }\r
91 \r
92   public void setDefaultNetconfStartPort(Integer defaultPort) {\r
93     defaultNetconfStartPort = defaultPort;\r
94   }\r
95 \r
96   public Integer getDefaultMaxServers() {\r
97     return defaultMaxServers;\r
98   }\r
99 \r
100   public void setDefaultMaxServers(Integer maxServers) {\r
101     defaultMaxServers = maxServers;\r
102   }\r
103 \r
104   public String getNetconfServerIP() {\r
105     return netconfServerIP;\r
106   }\r
107 \r
108   public void setNetconfServerIP(String netconfServerIP) {\r
109     this.netconfServerIP = netconfServerIP;\r
110   }\r
111 \r
112   public String getSchemaDirPath() {\r
113     return schemaDirPath;\r
114   }\r
115 \r
116   public void setSchemaDirPath(String schemaDirPath) {\r
117     this.schemaDirPath = schemaDirPath;\r
118   }\r
119 \r
120 }\r