a49b19a98fdd0d05f2696be05798e3074ac8bba5
[vfc/nfvo/driver/ems.git] / ems / boco / src / main / java / org / onap / vfc / nfvo / emsdriver / commons / model / CollectVo.java
1 /**
2  * Copyright 2017 BOCO Corporation.  CMCC Technologies Co., Ltd
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.onap.vfc.nfvo.emsdriver.commons.model;
17
18 /**
19  * @author boco
20  *
21  */
22 public class CollectVo {
23         
24         private String emsName;
25         
26         private String type;
27         
28         private String crontab;
29         
30         private String IP;
31         
32         private String port;
33         
34         private String user;
35         
36         private String password;
37         
38         private String remotepath;
39         
40         private String match;
41         
42         private String passive;
43         
44         private String ftptype;
45         
46         private String granularity;
47         
48         private boolean iscollect = false;
49         
50         private String read_timeout;
51         
52         
53
54         /**
55          * @return the iscollect
56          */
57         public boolean isIscollect() {
58                 return iscollect;
59         }
60
61         /**
62          * @param iscollect the iscollect to set
63          */
64         public void setIscollect(boolean iscollect) {
65                 this.iscollect = iscollect;
66         }
67
68         /**
69          * @return the type
70          */
71         public String getType() {
72                 return type;
73         }
74
75         /**
76          * @param type the type to set
77          */
78         public void setType(String type) {
79                 this.type = type;
80         }
81
82         /**
83          * @return the crontab
84          */
85         public String getCrontab() {
86                 return crontab;
87         }
88
89         /**
90          * @param crontab the crontab to set
91          */
92         public void setCrontab(String crontab) {
93                 this.crontab = crontab;
94         }
95
96         /**
97          * @return the iP
98          */
99         public String getIP() {
100                 return IP;
101         }
102
103         /**
104          * @param ip the iP to set
105          */
106         public void setIP(String ip) {
107                 IP = ip;
108         }
109
110         /**
111          * @return the port
112          */
113         public String getPort() {
114                 return port;
115         }
116
117         /**
118          * @param port the port to set
119          */
120         public void setPort(String port) {
121                 this.port = port;
122         }
123
124         /**
125          * @return the user
126          */
127         public String getUser() {
128                 return user;
129         }
130
131         /**
132          * @param user the user to set
133          */
134         public void setUser(String user) {
135                 this.user = user;
136         }
137
138         /**
139          * @return the password
140          */
141         public String getPassword() {
142                 return password;
143         }
144
145         /**
146          * @param password the password to set
147          */
148         public void setPassword(String password) {
149                 this.password = password;
150         }
151
152         /**
153          * @return the remotepath
154          */
155         public String getRemotepath() {
156                 return remotepath;
157         }
158
159         /**
160          * @param remotepath the remotepath to set
161          */
162         public void setRemotepath(String remotepath) {
163                 this.remotepath = remotepath;
164         }
165
166         /**
167          * @return the match
168          */
169         public String getMatch() {
170                 return match;
171         }
172
173         /**
174          * @param match the match to set
175          */
176         public void setMatch(String match) {
177                 this.match = match;
178         }
179
180         /**
181          * @return the passive
182          */
183         public String getPassive() {
184                 return passive;
185         }
186
187         /**
188          * @param passive the passive to set
189          */
190         public void setPassive(String passive) {
191                 this.passive = passive;
192         }
193
194         /**
195          * @return the ftptype
196          */
197         public String getFtptype() {
198                 return ftptype;
199         }
200
201         /**
202          * @param ftptype the ftptype to set
203          */
204         public void setFtptype(String ftptype) {
205                 this.ftptype = ftptype;
206         }
207
208         /**
209          * @return the granularity
210          */
211         public String getGranularity() {
212                 return granularity;
213         }
214
215         /**
216          * @param granularity the granularity to set
217          */
218         public void setGranularity(String granularity) {
219                 this.granularity = granularity;
220         }
221         
222         
223         public String toString(){
224                 StringBuffer sb = new StringBuffer();
225                 sb.append("CollectVo:").append("\n");
226                 if("alarm".equalsIgnoreCase(type)){
227                         sb.append("type = ").append(type).append("\n");
228                         sb.append("ip = ").append(IP).append("\n");
229                         sb.append("port = ").append(port).append("\n");
230                         sb.append("user = ").append(user).append("\n");
231                         sb.append("password = ").append(password).append("\n");
232                         sb.append("iscollect = ").append(iscollect).append("\n");
233                 }else{
234                         sb.append("type = ").append(type).append("\n");
235                         sb.append("ip = ").append(IP).append("\n");
236                         sb.append("port = ").append(port).append("\n");
237                         sb.append("user = ").append(user).append("\n");
238                         
239                         sb.append("password = ").append(password).append("\n");
240                         sb.append("remotepath = ").append(remotepath).append("\n");
241                         sb.append("match = ").append(match).append("\n");
242                         sb.append("passive = ").append(passive).append("\n");
243                         sb.append("ftptype = ").append(ftptype).append("\n");
244                         sb.append("granularity = ").append(type).append("\n");
245                 }
246                 
247                 
248                 return sb.toString();
249                 
250         }
251
252         /**
253          * @return the emsName
254          */
255         public String getEmsName() {
256                 return emsName;
257         }
258
259         /**
260          * @param emsName the emsName to set
261          */
262         public void setEmsName(String emsName) {
263                 this.emsName = emsName;
264         }
265
266         /**
267          * @return the read_timeout
268          */
269         public String getRead_timeout() {
270                 return read_timeout;
271         }
272
273         /**
274          * @param read_timeout the read_timeout to set
275          */
276         public void setRead_timeout(String read_timeout) {
277                 this.read_timeout = read_timeout;
278         }
279
280
281 }