/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/jmx/JmxAccountingCircuitBreaker.java
ViewVC logotype

Annotation of /miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/jmx/JmxAccountingCircuitBreaker.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 467 - (hide annotations) (download)
Thu Oct 22 06:01:35 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/jmx/JmxAccountingCircuitBreaker.java
File size: 865 byte(s)
Rename package
1 torben 467 package dk.thoerup.circuitbreaker.jmx;
2 torben 402
3 torben 467 import dk.thoerup.circuitbreaker.AccountingCircuitBreaker;
4 torben 402
5 torben 403 public class JmxAccountingCircuitBreaker extends JmxCircuitBreaker implements JmxAccountingCircuitBreakerMBean {
6 torben 402
7     private AccountingCircuitBreaker cb;
8    
9     public JmxAccountingCircuitBreaker(AccountingCircuitBreaker cb) {
10 torben 403 super(cb);
11 torben 402 this.cb = cb;
12     }
13    
14    
15     //Accounting section
16    
17     public int getTripCount() {
18     return cb.getTripCount();
19     }
20    
21     public int getBlockCount() {
22     return cb.getBlockCount();
23     }
24    
25 torben 403 public int getTotalFailureCount() {
26     return cb.getTotalFailureCount();
27 torben 402 }
28    
29 torben 460 public long getLastTrip() {
30     return cb.getLastTrip();
31     }
32    
33 torben 404 public long getLastResetCounters() {
34     return cb.getLastResetCounters();
35 torben 402 }
36    
37 torben 403 public int getTotalCallCount() {
38     return cb.getTotalCallCount();
39     }
40    
41 torben 402 public void resetCounters() {
42     cb.resetCounters();
43     }
44    
45     }

  ViewVC Help
Powered by ViewVC 1.1.20