1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.jdiagnose.remote;
17
18 import org.jdiagnose.RemoteResult;
19 import org.jdiagnose.ResultInfo;
20
21 /***
22 * @author jmccrindle
23 */
24 public class RemoteResultWrapper implements RemoteResult {
25
26 protected RemoteResult remoteResult;
27
28 public RemoteResultWrapper(RemoteResult remoteResult) {
29 this.remoteResult = remoteResult;
30 }
31
32
33
34
35 public boolean equals(Object obj) {
36 return remoteResult.equals(obj);
37 }
38 /***
39 * @return
40 */
41 public String getAgent() {
42 return remoteResult.getAgent();
43 }
44 /***
45 * @return
46 */
47 public String getGuid() {
48 return remoteResult.getGuid();
49 }
50 /***
51 * @return
52 */
53 public String getHost() {
54 return remoteResult.getHost();
55 }
56 /***
57 * @return
58 */
59 public ResultInfo getResultInfo() {
60 return remoteResult.getResultInfo();
61 }
62 /***
63 * @return
64 */
65 public long getSequenceNumber() {
66 return remoteResult.getSequenceNumber();
67 }
68
69
70
71 public int hashCode() {
72 return remoteResult.hashCode();
73 }
74
75
76
77 public String toString() {
78 return remoteResult.toString();
79 }
80 }