1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.jdiagnose.remote;
18
19 import org.jdiagnose.RemoteResult;
20 import org.jdiagnose.ResultInfo;
21
22 /***
23 * @author jmccrindle
24 */
25 public class DefaultRemoteResult implements RemoteResult {
26
27 private String guid = null;
28 private ResultInfo resultInfo = null;
29 private String agent = null;
30 private String host = null;
31 private long sequenceNumber = 0L;
32
33 public DefaultRemoteResult() {
34
35 }
36
37 /***
38 * @param resultInfo
39 * @param agent
40 * @param host
41 */
42 public DefaultRemoteResult(String guid, ResultInfo resultInfo, String agent, String host, long sequenceNumber) {
43 this.resultInfo = resultInfo;
44 this.agent = agent;
45 this.host = host;
46 this.guid = guid;
47 this.sequenceNumber = sequenceNumber;
48 }
49
50
51
52
53 public ResultInfo getResultInfo() {
54 return resultInfo;
55 }
56
57
58
59
60 public String getAgent() {
61 return agent;
62 }
63
64
65
66
67 public String getHost() {
68 return host;
69 }
70
71 public String getGuid() {
72 return guid;
73 }
74
75
76
77
78 public String toString() {
79 return "{" + guid + ", " + host + ", " + agent + ", " + resultInfo.toString() + "}";
80 }
81
82 /***
83 * @return Returns the sequenceNumber.
84 */
85 public long getSequenceNumber() {
86 return sequenceNumber;
87 }
88 }