1 /*
2 * Copyright 2010 Capgemini Licensed under the Apache License, Version 2.0 (the
3 * "License"); you may not use this file except in compliance with the License.
4 * You may obtain a copy of the License at
5 *
6 * http://www.apache.org/licenses/LICENSE-2.0
7 *
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11 * License for the specific language governing permissions and limitations under
12 * the License.
13 */
14 package net.sf.appstatus.core.services;
15
16 /**
17 * A service with associated metrics.
18 *
19 * @author Nicolas Richeton
20 *
21 */
22 public interface IService extends Comparable<IService> {
23
24 double getAvgNestedCalls();
25
26 double getAvgNestedCallsWithCache();
27
28 Double getAvgResponseTime();
29
30 Double getAvgResponseTimeWithCache();
31
32 long getCacheHits();
33
34 double getCurrentRate();
35
36 long getErrors();
37
38 long getFailures();
39
40 String getGroup();
41
42 long getHits();
43
44 Long getMaxResponseTime();
45
46 Long getMaxResponseTimeWithCache();
47
48 Long getMinResponseTime();
49
50 Long getMinResponseTimeWithCache();
51
52 String getName();
53
54 long getRunning();
55
56 }