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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2449 - (show annotations) (download)
Fri Mar 20 08:58:46 2015 UTC (9 years, 2 months ago) by torben
File size: 1126 byte(s)
switch to maven
1 package dk.thoerup.circuitbreaker.jmx;
2
3 import dk.thoerup.circuitbreaker.AccountingCircuitBreaker;
4
5 public class JmxAccountingCircuitBreaker extends JmxCircuitBreaker implements JmxAccountingCircuitBreakerMBean {
6
7 private AccountingCircuitBreaker cb;
8
9 public JmxAccountingCircuitBreaker(AccountingCircuitBreaker cb) {
10 super(cb);
11 this.cb = cb;
12 }
13
14
15 //Accounting section
16
17 public int getTripCount() {
18 return cb.getTripCount();
19 }
20
21 public int getRetripCount() {
22 return cb.getRetripCount();
23 }
24
25 public int getBlockCount() {
26 return cb.getBlockCount();
27 }
28
29 public int getTotalFailureCount() {
30 return cb.getTotalFailureCount();
31 }
32
33 public long getLastTrip() {
34 return cb.getLastTrip();
35 }
36
37 public long getLastRetrip() {
38 return cb.getLastRetrip();
39 }
40
41 public long getLastReset() {
42 return cb.getLastReset();
43 }
44
45 public long getLastResetCounters() {
46 return cb.getLastResetCounters();
47 }
48
49 public long getLastFailure() {
50 return cb.getLastFailure();
51 }
52
53 public int getTotalCallCount() {
54 return cb.getTotalCallCount();
55 }
56
57 public void resetCounters() {
58 cb.resetCounters();
59 }
60
61 }

  ViewVC Help
Powered by ViewVC 1.1.20