fixing warnings from checkstyle in common-app-api
[sdc.git] / common-app-api / src / main / java / org / openecomp / sdc / be / config / DmaapConsumerConfiguration.java
index e186654..c99cbba 100644 (file)
@@ -7,9 +7,9 @@
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  */
 
 package org.openecomp.sdc.be.config;
+
 /**
  * Contains DMAAP Client configuration parameters
  */
 public class DmaapConsumerConfiguration {
-       private boolean active;
-       private String hosts;
-       private String consumerGroup;
-       private String consumerId;
-       private Integer timeoutMs;
-       private Integer limit;
-       private Integer pollingInterval;
-       private String topic;
-       private Double latitude;
-       private Double longitude;
-       private String version;
-       private String serviceName;
-       private String environment;
-       private String partner;
-       private String routeOffer;
-       private String protocol;
-       private String contenttype;
-       private Boolean dme2TraceOn;
-       private String aftEnvironment;
-       private Integer aftDme2ConnectionTimeoutMs;
-       private Integer aftDme2RoundtripTimeoutMs;
-       private Integer aftDme2ReadTimeoutMs;
-       private String dme2preferredRouterFilePath; 
-       private Credential credential;
-       private Integer timeLimitForNotificationHandleMs;
-
-       public String getHosts() {
-               return hosts;
-       }
-
-       public void setHosts(String hosts) {
-               this.hosts = hosts;
-       }
-
-       public String getConsumerGroup() {
-               return consumerGroup;
-       }
-
-       public void setConsumerGroup(String consumerGroup) {
-               this.consumerGroup = consumerGroup;
-       }
-
-       public String getConsumerId() {
-               return consumerId;
-       }
-
-       public void setConsumerId(String consumerId) {
-               this.consumerId = consumerId;
-       }
-
-       public Integer getTimeoutMs() {
-               return timeoutMs;
-       }
-
-       public void setTimeoutMs(Integer timeoutMs) {
-               this.timeoutMs = timeoutMs;
-       }
-
-       public Integer getLimit() {
-               return limit;
-       }
-
-       public void setLimit(Integer limit) {
-               this.limit = limit;
-       }
-
-       public Integer getPollingInterval() {
-               return pollingInterval;
-       }
-
-       public void setPollingInterval(Integer pollingInterval) {
-               this.pollingInterval = pollingInterval;
-       }
-
-       public String getTopic() {
-               return topic;
-       }
-
-       public void setTopic(String topic) {
-               this.topic = topic;
-       }
-
-       public Double getLatitude() {
-               return latitude;
-       }
-
-       public void setLatitude(Double latitude) {
-               this.latitude = latitude;
-       }
-
-       public Double getLongitude() {
-               return longitude;
-       }
-
-       public void setLongitude(Double longitude) {
-               this.longitude = longitude;
-       }
-
-       public String getVersion() {
-               return version;
-       }
-
-       public void setVersion(String version) {
-               this.version = version;
-       }
-
-       public String getServiceName() {
-               return serviceName;
-       }
-
-       public void setServiceName(String serviceName) {
-               this.serviceName = serviceName;
-       }
-
-       public String getEnvironment() {
-               return environment;
-       }
-
-       public void setEnvironment(String environment) {
-               this.environment = environment;
-       }
-
-       public String getPartner() {
-               return partner;
-       }
-
-       public void setPartner(String partner) {
-               this.partner = partner;
-       }
-
-       public String getRouteOffer() {
-               return routeOffer;
-       }
-
-       public void setRouteOffer(String routeOffer) {
-               this.routeOffer = routeOffer;
-       }
-
-       public String getProtocol() {
-               return protocol;
-       }
-
-       public void setProtocol(String protocol) {
-               this.protocol = protocol;
-       }
-
-       public String getContenttype() {
-               return contenttype;
-       }
-
-       public void setContenttype(String contenttype) {
-               this.contenttype = contenttype;
-       }
-
-       public Boolean isDme2TraceOn() {
-               return dme2TraceOn;
-       }
-       
-       public Boolean getDme2TraceOn() {
-               return dme2TraceOn;
-       }
-
-       public void setDme2TraceOn(Boolean dme2TraceOn) {
-               this.dme2TraceOn = dme2TraceOn;
-       }
-
-       public String getAftEnvironment() {
-               return aftEnvironment;
-       }
-
-       public void setAftEnvironment(String aftEnvironment) {
-               this.aftEnvironment = aftEnvironment;
-       }
-
-       public Integer getAftDme2ConnectionTimeoutMs() {
-               return aftDme2ConnectionTimeoutMs;
-       }
-
-       public void setAftDme2ConnectionTimeoutMs(Integer aftDme2ConnectionTimeoutMs) {
-               this.aftDme2ConnectionTimeoutMs = aftDme2ConnectionTimeoutMs;
-       }
-
-       public Integer getAftDme2RoundtripTimeoutMs() {
-               return aftDme2RoundtripTimeoutMs;
-       }
-
-       public void setAftDme2RoundtripTimeoutMs(Integer aftDme2RoundtripTimeoutMs) {
-               this.aftDme2RoundtripTimeoutMs = aftDme2RoundtripTimeoutMs;
-       }
-
-       public Integer getAftDme2ReadTimeoutMs() {
-               return aftDme2ReadTimeoutMs;
-       }
-
-       public void setAftDme2ReadTimeoutMs(Integer aftDme2ReadTimeoutMs) {
-               this.aftDme2ReadTimeoutMs = aftDme2ReadTimeoutMs;
-       }
-
-       public String getDme2preferredRouterFilePath() {
-               return dme2preferredRouterFilePath;
-       }
-
-       public void setDme2preferredRouterFilePath(String dme2preferredRouterFilePath) {
-               this.dme2preferredRouterFilePath = dme2preferredRouterFilePath;
-       }
-
-       public Credential getCredential() {
-               return credential;
-       }
-
-       public void setCredential(Credential credential) {
-               this.credential = credential;
-       }
-
-       public boolean isActive() { return active; }
-
-       public void setActive(boolean isActive) { this.active = isActive; }
-
-       /**
-        * Contains Dmaap Client credential parameters: username and password
-        */
-       public static class Credential{
-               
-               private String username;
-               private String password;
-               
-               public String getUsername() {
-                       return username;
-               }
-               public void setUsername(String username) {
-                       this.username = username;
-               }
-               public String getPassword() {
-                       return password;
-               }
-               public void setPassword(String password) {
-                       this.password = password;
-               }
-               @Override
-               public String toString() {
-                       return "Credential [username=" + username + ", password=" + password + "]";
-               }
-                
-         }
-
-       @Override
-       public String toString() {
-               return "DmaapConsumerConfiguration [active=" + active + ", hosts=" + hosts + ", consumerGroup=" + consumerGroup + ", consumerId="
-                               + consumerId + ", timeoutMs=" + timeoutMs + ", limit=" + limit + ", pollingInterval=" + pollingInterval
-                               + ", topic=" + topic + ", latitude=" + latitude + ", longitude=" + longitude + ", version=" + version
-                               + ", serviceName=" + serviceName + ", environment=" + environment + ", partner=" + partner
-                               + ", routeOffer=" + routeOffer + ", protocol=" + protocol + ", contenttype=" + contenttype
-                               + ", dme2TraceOn=" + dme2TraceOn + ", aftEnvironment=" + aftEnvironment
-                               + ", aftDme2ConnectionTimeoutMs=" + aftDme2ConnectionTimeoutMs + ", aftDme2RoundtripTimeoutMs="
-                               + aftDme2RoundtripTimeoutMs + ", aftDme2ReadTimeoutMs=" + aftDme2ReadTimeoutMs
-                               + ", dme2preferredRouterFilePath=" + dme2preferredRouterFilePath
-                               + ", timeLimitForNotificationHandleMs=" + timeLimitForNotificationHandleMs+ ", credential=" + credential + "]";
-       }
-
-       public Integer getTimeLimitForNotificationHandleMs() {
-               return timeLimitForNotificationHandleMs;
-       }
-
-       public void setTimeLimitForNotificationHandleMs(Integer timeLimitForNotificationHandleMs) {
-               this.timeLimitForNotificationHandleMs = timeLimitForNotificationHandleMs;
-       }
-       
+    private boolean active;
+    private String hosts;
+    private String consumerGroup;
+    private String consumerId;
+    private Integer timeoutMs;
+    private Integer limit;
+    private Integer pollingInterval;
+    private String topic;
+    private Double latitude;
+    private Double longitude;
+    private String version;
+    private String serviceName;
+    private String environment;
+    private String partner;
+    private String routeOffer;
+    private String protocol;
+    private String contenttype;
+    private Boolean dme2TraceOn;
+    private String aftEnvironment;
+    private Integer aftDme2ConnectionTimeoutMs;
+    private Integer aftDme2RoundtripTimeoutMs;
+    private Integer aftDme2ReadTimeoutMs;
+    private String dme2preferredRouterFilePath;
+    private Credential credential;
+    private Integer timeLimitForNotificationHandleMs;
+
+    public String getHosts() {
+        return hosts;
+    }
+
+    public void setHosts(String hosts) {
+        this.hosts = hosts;
+    }
+
+    public String getConsumerGroup() {
+        return consumerGroup;
+    }
+
+    public void setConsumerGroup(String consumerGroup) {
+        this.consumerGroup = consumerGroup;
+    }
+
+    public String getConsumerId() {
+        return consumerId;
+    }
+
+    public void setConsumerId(String consumerId) {
+        this.consumerId = consumerId;
+    }
+
+    public Integer getTimeoutMs() {
+        return timeoutMs;
+    }
+
+    public void setTimeoutMs(Integer timeoutMs) {
+        this.timeoutMs = timeoutMs;
+    }
+
+    public Integer getLimit() {
+        return limit;
+    }
+
+    public void setLimit(Integer limit) {
+        this.limit = limit;
+    }
+
+    public Integer getPollingInterval() {
+        return pollingInterval;
+    }
+
+    public void setPollingInterval(Integer pollingInterval) {
+        this.pollingInterval = pollingInterval;
+    }
+
+    public String getTopic() {
+        return topic;
+    }
+
+    public void setTopic(String topic) {
+        this.topic = topic;
+    }
+
+    public Double getLatitude() {
+        return latitude;
+    }
+
+    public void setLatitude(Double latitude) {
+        this.latitude = latitude;
+    }
+
+    public Double getLongitude() {
+        return longitude;
+    }
+
+    public void setLongitude(Double longitude) {
+        this.longitude = longitude;
+    }
+
+    public String getVersion() {
+        return version;
+    }
+
+    public void setVersion(String version) {
+        this.version = version;
+    }
+
+    public String getServiceName() {
+        return serviceName;
+    }
+
+    public void setServiceName(String serviceName) {
+        this.serviceName = serviceName;
+    }
+
+    public String getEnvironment() {
+        return environment;
+    }
+
+    public void setEnvironment(String environment) {
+        this.environment = environment;
+    }
+
+    public String getPartner() {
+        return partner;
+    }
+
+    public void setPartner(String partner) {
+        this.partner = partner;
+    }
+
+    public String getRouteOffer() {
+        return routeOffer;
+    }
+
+    public void setRouteOffer(String routeOffer) {
+        this.routeOffer = routeOffer;
+    }
+
+    public String getProtocol() {
+        return protocol;
+    }
+
+    public void setProtocol(String protocol) {
+        this.protocol = protocol;
+    }
+
+    public String getContenttype() {
+        return contenttype;
+    }
+
+    public void setContenttype(String contenttype) {
+        this.contenttype = contenttype;
+    }
+
+    public Boolean isDme2TraceOn() {
+        return dme2TraceOn;
+    }
+
+    public Boolean getDme2TraceOn() {
+        return dme2TraceOn;
+    }
+
+    public void setDme2TraceOn(Boolean dme2TraceOn) {
+        this.dme2TraceOn = dme2TraceOn;
+    }
+
+    public String getAftEnvironment() {
+        return aftEnvironment;
+    }
+
+    public void setAftEnvironment(String aftEnvironment) {
+        this.aftEnvironment = aftEnvironment;
+    }
+
+    public Integer getAftDme2ConnectionTimeoutMs() {
+        return aftDme2ConnectionTimeoutMs;
+    }
+
+    public void setAftDme2ConnectionTimeoutMs(Integer aftDme2ConnectionTimeoutMs) {
+        this.aftDme2ConnectionTimeoutMs = aftDme2ConnectionTimeoutMs;
+    }
+
+    public Integer getAftDme2RoundtripTimeoutMs() {
+        return aftDme2RoundtripTimeoutMs;
+    }
+
+    public void setAftDme2RoundtripTimeoutMs(Integer aftDme2RoundtripTimeoutMs) {
+        this.aftDme2RoundtripTimeoutMs = aftDme2RoundtripTimeoutMs;
+    }
+
+    public Integer getAftDme2ReadTimeoutMs() {
+        return aftDme2ReadTimeoutMs;
+    }
+
+    public void setAftDme2ReadTimeoutMs(Integer aftDme2ReadTimeoutMs) {
+        this.aftDme2ReadTimeoutMs = aftDme2ReadTimeoutMs;
+    }
+
+    public String getDme2preferredRouterFilePath() {
+        return dme2preferredRouterFilePath;
+    }
+
+    public void setDme2preferredRouterFilePath(String dme2preferredRouterFilePath) {
+        this.dme2preferredRouterFilePath = dme2preferredRouterFilePath;
+    }
+
+    public Credential getCredential() {
+        return credential;
+    }
+
+    public void setCredential(Credential credential) {
+        this.credential = credential;
+    }
+
+    public boolean isActive() {
+        return active;
+    }
+
+    public void setActive(boolean isActive) {
+        this.active = isActive;
+    }
+
+    /**
+     * Contains Dmaap Client credential parameters: username and password
+     */
+    public static class Credential {
+
+        private String username;
+        private String password;
+
+        public String getUsername() {
+            return username;
+        }
+
+        public void setUsername(String username) {
+            this.username = username;
+        }
+
+        public String getPassword() {
+            return password;
+        }
+
+        public void setPassword(String password) {
+            this.password = password;
+        }
+
+        @Override
+        public String toString() {
+            return "Credential [username=" + username + ", password=" + password + "]";
+        }
+
+    }
+
+    @Override
+    public String toString() {
+        return "DmaapConsumerConfiguration [active=" + active + ", hosts=" + hosts + ", consumerGroup=" + consumerGroup + ", consumerId="
+                + consumerId + ", timeoutMs=" + timeoutMs + ", limit=" + limit + ", pollingInterval=" + pollingInterval
+                + ", topic=" + topic + ", latitude=" + latitude + ", longitude=" + longitude + ", version=" + version
+                + ", serviceName=" + serviceName + ", environment=" + environment + ", partner=" + partner
+                + ", routeOffer=" + routeOffer + ", protocol=" + protocol + ", contenttype=" + contenttype
+                + ", dme2TraceOn=" + dme2TraceOn + ", aftEnvironment=" + aftEnvironment
+                + ", aftDme2ConnectionTimeoutMs=" + aftDme2ConnectionTimeoutMs + ", aftDme2RoundtripTimeoutMs="
+                + aftDme2RoundtripTimeoutMs + ", aftDme2ReadTimeoutMs=" + aftDme2ReadTimeoutMs
+                + ", dme2preferredRouterFilePath=" + dme2preferredRouterFilePath
+                + ", timeLimitForNotificationHandleMs=" + timeLimitForNotificationHandleMs + ", credential=" + credential + "]";
+    }
+
+    public Integer getTimeLimitForNotificationHandleMs() {
+        return timeLimitForNotificationHandleMs;
+    }
+
+    public void setTimeLimitForNotificationHandleMs(Integer timeLimitForNotificationHandleMs) {
+        this.timeLimitForNotificationHandleMs = timeLimitForNotificationHandleMs;
+    }
+
 }