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;
17  
18  
19  /***
20   * Remote information about a Diagnostic information.
21   * 
22   * @author jmccrindle
23   */
24  public interface RemoteResult {
25  
26      /***
27       * @return Information about the result itself. 
28       */
29      ResultInfo getResultInfo();
30      
31      /***
32       * @return a globally unique identifier for this result
33       *         should not be null.
34       */
35      String getGuid();
36      
37      /***
38       * @return the name of the agent that ran the diagnostic
39       */
40      String getAgent();
41      
42      /***
43       * @return the name of the host that ran the diagnostic
44       */
45      String getHost();
46      
47      /***
48       * @return a sequence number for ordering the results
49       *         should be unique for a particular agent, host
50       *         and diagnostic combination.
51       */
52      long getSequenceNumber();
53  }