View Javadoc

1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }