1
2 package org.miloss.fgsms.services.interfaces.dataaccessservice;
3
4 import java.io.Serializable;
5 import java.util.ArrayList;
6 import java.util.List;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlSchemaType;
11 import javax.xml.bind.annotation.XmlType;
12 import java.util.Calendar;
13
14
15 /**
16 *
17 * Message Transaction Log
18 *
19 *
20 * <p>Java class for TransactionLog complex type.
21 *
22 * <p>The following schema fragment specifies the expected content contained within this class.
23 *
24 * <pre>
25 * <complexType name="TransactionLog">
26 * <complexContent>
27 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
28 * <sequence>
29 * <element name="Action" type="{http://www.w3.org/2001/XMLSchema}string"/>
30 * <element name="URL" type="{http://www.w3.org/2001/XMLSchema}string"/>
31 * <element name="Identity" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
32 * <element name="IsFault" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
33 * <element name="IsSLAFault" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
34 * <element name="slaFaultMsg" type="{http://www.w3.org/2001/XMLSchema}string"/>
35 * <element name="MonitorHostname" type="{http://www.w3.org/2001/XMLSchema}string"/>
36 * <element name="ResponseTime" type="{http://www.w3.org/2001/XMLSchema}long"/>
37 * <element name="ServiceHostname" type="{http://www.w3.org/2001/XMLSchema}string"/>
38 * <element name="hasRequestMessage" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
39 * <element name="hasResponseMessage" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
40 * <element name="requestSize" type="{http://www.w3.org/2001/XMLSchema}long"/>
41 * <element name="responseSize" type="{http://www.w3.org/2001/XMLSchema}long"/>
42 * <element name="timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
43 * <element name="transactionId" type="{urn:org:miloss:fgsms:services:interfaces:dataAccessService}guid"/>
44 * </sequence>
45 * </restriction>
46 * </complexContent>
47 * </complexType>
48 * </pre>
49 *
50 *
51 */
52 @XmlAccessorType(XmlAccessType.FIELD)
53 @XmlType(name = "TransactionLog", propOrder = {
54 "action",
55 "url",
56 "identity",
57 "isFault",
58 "isSLAFault",
59 "slaFaultMsg",
60 "monitorHostname",
61 "responseTime",
62 "serviceHostname",
63 "hasRequestMessage",
64 "hasResponseMessage",
65 "requestSize",
66 "responseSize",
67 "timestamp",
68 "transactionId"
69 })
70 public class TransactionLog
71 implements Serializable
72 {
73
74 private final static long serialVersionUID = 1L;
75 @XmlElement(name = "Action", required = true, nillable = true)
76 protected String action;
77 @XmlElement(name = "URL", required = false)
78 protected String url;
79 @XmlElement(name = "Identity", required = false)
80 protected List<String> identity;
81 @XmlElement(name = "IsFault")
82 protected boolean isFault;
83 @XmlElement(name = "IsSLAFault")
84 protected boolean isSLAFault;
85 @XmlElement(required = false, nillable = true)
86 protected String slaFaultMsg;
87 @XmlElement(name = "MonitorHostname", required = false, nillable = true)
88 protected String monitorHostname;
89 @XmlElement(name = "ResponseTime")
90 protected long responseTime;
91 @XmlElement(name = "ServiceHostname", required = false, nillable = true)
92 protected String serviceHostname;
93 protected boolean hasRequestMessage;
94 protected boolean hasResponseMessage;
95 protected long requestSize;
96 protected long responseSize;
97 @XmlElement(required = false)
98 @XmlSchemaType(name = "dateTime")
99 protected Calendar timestamp;
100 @XmlElement(required = true)
101 protected String transactionId;
102
103 /**
104 * Gets the value of the action property.
105 *
106 * @return
107 * possible object is
108 * {@link String }
109 *
110 */
111 public String getAction() {
112 return action;
113 }
114
115 /**
116 * Sets the value of the action property.
117 *
118 * @param value
119 * allowed object is
120 * {@link String }
121 *
122 */
123 public void setAction(String value) {
124 this.action = value;
125 }
126
127 public boolean isSetAction() {
128 return (this.action!= null);
129 }
130
131 /**
132 * Gets the value of the url property.
133 *
134 * @return
135 * possible object is
136 * {@link String }
137 *
138 */
139 public String getURL() {
140 return url;
141 }
142
143 /**
144 * Sets the value of the url property.
145 *
146 * @param value
147 * allowed object is
148 * {@link String }
149 *
150 */
151 public void setURL(String value) {
152 this.url = value;
153 }
154
155 public boolean isSetURL() {
156 return (this.url!= null);
157 }
158
159 /**
160 * Gets the value of the identity property.
161 *
162 * <p>
163 * This accessor method returns a reference to the live list,
164 * not a snapshot. Therefore any modification you make to the
165 * returned list will be present inside the JAXB object.
166 * This is why there is not a <CODE>set</CODE> method for the identity property.
167 *
168 * <p>
169 * For example, to add a new item, do as follows:
170 * <pre>
171 * getIdentity().add(newItem);
172 * </pre>
173 *
174 *
175 * <p>
176 * Objects of the following type(s) are allowed in the list
177 * {@link String }
178 *
179 *
180 */
181 public List<String> getIdentity() {
182 if (identity == null) {
183 identity = new ArrayList<String>();
184 }
185 return this.identity;
186 }
187
188 public boolean isSetIdentity() {
189 return ((this.identity!= null)&&(!this.identity.isEmpty()));
190 }
191
192 public void unsetIdentity() {
193 this.identity = null;
194 }
195
196 /**
197 * Gets the value of the isFault property.
198 *
199 */
200 public boolean isIsFault() {
201 return isFault;
202 }
203
204 /**
205 * Sets the value of the isFault property.
206 *
207 */
208 public void setIsFault(boolean value) {
209 this.isFault = value;
210 }
211
212 public boolean isSetIsFault() {
213 return true;
214 }
215
216 /**
217 * Gets the value of the isSLAFault property.
218 *
219 */
220 public boolean isIsSLAFault() {
221 return isSLAFault;
222 }
223
224 /**
225 * Sets the value of the isSLAFault property.
226 *
227 */
228 public void setIsSLAFault(boolean value) {
229 this.isSLAFault = value;
230 }
231
232 public boolean isSetIsSLAFault() {
233 return true;
234 }
235
236 /**
237 * Gets the value of the slaFaultMsg property.
238 *
239 * @return
240 * possible object is
241 * {@link String }
242 *
243 */
244 public String getSlaFaultMsg() {
245 return slaFaultMsg;
246 }
247
248 /**
249 * Sets the value of the slaFaultMsg property.
250 *
251 * @param value
252 * allowed object is
253 * {@link String }
254 *
255 */
256 public void setSlaFaultMsg(String value) {
257 this.slaFaultMsg = value;
258 }
259
260 public boolean isSetSlaFaultMsg() {
261 return (this.slaFaultMsg!= null);
262 }
263
264 /**
265 * Gets the value of the monitorHostname property.
266 *
267 * @return
268 * possible object is
269 * {@link String }
270 *
271 */
272 public String getMonitorHostname() {
273 return monitorHostname;
274 }
275
276 /**
277 * Sets the value of the monitorHostname property.
278 *
279 * @param value
280 * allowed object is
281 * {@link String }
282 *
283 */
284 public void setMonitorHostname(String value) {
285 this.monitorHostname = value;
286 }
287
288 public boolean isSetMonitorHostname() {
289 return (this.monitorHostname!= null);
290 }
291
292 /**
293 * Gets the value of the responseTime property.
294 *
295 */
296 public long getResponseTime() {
297 return responseTime;
298 }
299
300 /**
301 * Sets the value of the responseTime property.
302 *
303 */
304 public void setResponseTime(long value) {
305 this.responseTime = value;
306 }
307
308 public boolean isSetResponseTime() {
309 return true;
310 }
311
312 /**
313 * Gets the value of the serviceHostname property.
314 *
315 * @return
316 * possible object is
317 * {@link String }
318 *
319 */
320 public String getServiceHostname() {
321 return serviceHostname;
322 }
323
324 /**
325 * Sets the value of the serviceHostname property.
326 *
327 * @param value
328 * allowed object is
329 * {@link String }
330 *
331 */
332 public void setServiceHostname(String value) {
333 this.serviceHostname = value;
334 }
335
336 public boolean isSetServiceHostname() {
337 return (this.serviceHostname!= null);
338 }
339
340 /**
341 * Gets the value of the hasRequestMessage property.
342 *
343 */
344 public boolean isHasRequestMessage() {
345 return hasRequestMessage;
346 }
347
348 /**
349 * Sets the value of the hasRequestMessage property.
350 *
351 */
352 public void setHasRequestMessage(boolean value) {
353 this.hasRequestMessage = value;
354 }
355
356 public boolean isSetHasRequestMessage() {
357 return true;
358 }
359
360 /**
361 * Gets the value of the hasResponseMessage property.
362 *
363 */
364 public boolean isHasResponseMessage() {
365 return hasResponseMessage;
366 }
367
368 /**
369 * Sets the value of the hasResponseMessage property.
370 *
371 */
372 public void setHasResponseMessage(boolean value) {
373 this.hasResponseMessage = value;
374 }
375
376 public boolean isSetHasResponseMessage() {
377 return true;
378 }
379
380 /**
381 * Gets the value of the requestSize property.
382 *
383 */
384 public long getRequestSize() {
385 return requestSize;
386 }
387
388 /**
389 * Sets the value of the requestSize property.
390 *
391 */
392 public void setRequestSize(long value) {
393 this.requestSize = value;
394 }
395
396 public boolean isSetRequestSize() {
397 return true;
398 }
399
400 /**
401 * Gets the value of the responseSize property.
402 *
403 */
404 public long getResponseSize() {
405 return responseSize;
406 }
407
408 /**
409 * Sets the value of the responseSize property.
410 *
411 */
412 public void setResponseSize(long value) {
413 this.responseSize = value;
414 }
415
416 public boolean isSetResponseSize() {
417 return true;
418 }
419
420 /**
421 * Gets the value of the timestamp property.
422 *
423 * @return
424 * possible object is
425 * {@link Calendar }
426 *
427 */
428 public Calendar getTimestamp() {
429 return timestamp;
430 }
431
432 /**
433 * Sets the value of the timestamp property.
434 *
435 * @param value
436 * allowed object is
437 * {@link Calendar }
438 *
439 */
440 public void setTimestamp(Calendar value) {
441 this.timestamp = value;
442 }
443
444 public boolean isSetTimestamp() {
445 return (this.timestamp!= null);
446 }
447
448 /**
449 * Gets the value of the transactionId property.
450 *
451 * @return
452 * possible object is
453 * {@link String }
454 *
455 */
456 public String getTransactionId() {
457 return transactionId;
458 }
459
460 /**
461 * Sets the value of the transactionId property.
462 *
463 * @param value
464 * allowed object is
465 * {@link String }
466 *
467 */
468 public void setTransactionId(String value) {
469 this.transactionId = value;
470 }
471
472 public boolean isSetTransactionId() {
473 return (this.transactionId!= null);
474 }
475
476 }