1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.jdiagnose.remote.system;
17
18 import org.jdiagnose.remote.system.Query;
19
20 /***
21 * @author jmccrindle
22 */
23 public class DefaultQuery implements Query {
24
25 private long startDate = 0L;
26 private long endDate = Long.MAX_VALUE;
27 private String host = null;
28 private String agent = null;
29 private String diagnostic = null;
30 private int maxResults = 1000;
31 private String system = null;
32
33 public DefaultQuery() {
34
35 }
36
37 /***
38 * @param startDate
39 * @param endDate
40 * @param host
41 * @param agent
42 * @param diagnostic
43 * @param maxResults
44 */
45 public DefaultQuery(long startDate, long endDate, String host,
46 String agent, String diagnostic, int maxResults, String system) {
47 super();
48 this.startDate = startDate;
49 this.endDate = endDate;
50 this.host = host;
51 this.agent = agent;
52 this.diagnostic = diagnostic;
53 this.maxResults = maxResults;
54 this.system = system;
55 }
56
57 public String getAgent() {
58 return agent;
59 }
60 public void setAgent(String agent) {
61 this.agent = agent;
62 }
63 public String getDiagnostic() {
64 return diagnostic;
65 }
66 public void setDiagnostic(String diagnostic) {
67 this.diagnostic = diagnostic;
68 }
69 public long getEndDate() {
70 return endDate;
71 }
72 public void setEndDate(long endDate) {
73 this.endDate = endDate;
74 }
75 public String getHost() {
76 return host;
77 }
78 public void setHost(String host) {
79 this.host = host;
80 }
81 public int getMaxResults() {
82 return maxResults;
83 }
84 public void setMaxResults(int maxResults) {
85 this.maxResults = maxResults;
86 }
87 public long getStartDate() {
88 return startDate;
89 }
90 public void setStartDate(long startDate) {
91 this.startDate = startDate;
92 }
93 public String getSystem() {
94 return system;
95 }
96 public void setSystem(String system) {
97 this.system = system;
98 }
99 }