summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java/org/openecomp/sdc/be/config/DmaapConsumerConfiguration.java
blob: 1ba539b942e9d1950d37b8789344e71e148970a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
package org.openecomp.sdc.be.config;
/**
 * Contains DMAAP Client configuration parameters
 */
public class DmaapConsumerConfiguration {
	
	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;
	}
	
	/**
	 * 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 [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;
	}
	
}