2 * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.onap.vfc.nfvo.emsdriver.commons.model;
22 public class CollectVo {
24 private String emsName;
28 private String crontab;
36 private String password;
38 private String remotepath;
42 private String passive;
44 private String ftptype;
46 private String granularity;
48 private boolean iscollect = false;
50 private String read_timeout;
55 * @return the iscollect
57 public boolean isIscollect() {
62 * @param iscollect the iscollect to set
64 public void setIscollect(boolean iscollect) {
65 this.iscollect = iscollect;
71 public String getType() {
76 * @param type the type to set
78 public void setType(String type) {
85 public String getCrontab() {
90 * @param crontab the crontab to set
92 public void setCrontab(String crontab) {
93 this.crontab = crontab;
99 public String getIP() {
104 * @param ip the iP to set
106 public void setIP(String ip) {
113 public String getPort() {
118 * @param port the port to set
120 public void setPort(String port) {
127 public String getUser() {
132 * @param user the user to set
134 public void setUser(String user) {
139 * @return the password
141 public String getPassword() {
146 * @param password the password to set
148 public void setPassword(String password) {
149 this.password = password;
153 * @return the remotepath
155 public String getRemotepath() {
160 * @param remotepath the remotepath to set
162 public void setRemotepath(String remotepath) {
163 this.remotepath = remotepath;
169 public String getMatch() {
174 * @param match the match to set
176 public void setMatch(String match) {
181 * @return the passive
183 public String getPassive() {
188 * @param passive the passive to set
190 public void setPassive(String passive) {
191 this.passive = passive;
195 * @return the ftptype
197 public String getFtptype() {
202 * @param ftptype the ftptype to set
204 public void setFtptype(String ftptype) {
205 this.ftptype = ftptype;
209 * @return the granularity
211 public String getGranularity() {
216 * @param granularity the granularity to set
218 public void setGranularity(String granularity) {
219 this.granularity = granularity;
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");
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");
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");
248 return sb.toString();
253 * @return the emsName
255 public String getEmsName() {
260 * @param emsName the emsName to set
262 public void setEmsName(String emsName) {
263 this.emsName = emsName;
267 * @return the read_timeout
269 public String getRead_timeout() {
274 * @param read_timeout the read_timeout to set
276 public void setRead_timeout(String read_timeout) {
277 this.read_timeout = read_timeout;