1 |
package dk.thoerup.curcuitbreaker.jmx; |
package dk.thoerup.circuitbreaker.jmx; |
2 |
|
|
3 |
import dk.thoerup.curcuitbreaker.CircuitBreaker; |
import dk.thoerup.circuitbreaker.CircuitBreaker; |
4 |
|
|
5 |
public class JmxCircuitBreaker implements JmxCircuitBreakerMBean { |
public class JmxCircuitBreaker implements JmxCircuitBreakerMBean { |
6 |
|
|
17 |
public String getStateName() { |
public String getStateName() { |
18 |
return cb.getStateName(); |
return cb.getStateName(); |
19 |
} |
} |
20 |
|
|
21 |
|
public int getThreshold() { |
22 |
|
return cb.getThreshold(); |
23 |
|
} |
24 |
|
|
25 |
|
public int getTimeout() { |
26 |
|
return cb.getTimeout(); |
27 |
|
} |
28 |
|
|
29 |
|
public int getFailureCount() { |
30 |
|
return cb.getFailureCount(); |
31 |
|
} |
32 |
|
|
33 |
|
public long getElapsed() { |
34 |
|
return cb.getElapsed(); |
35 |
|
} |
36 |
|
|
37 |
|
public String getNotifierName() { |
38 |
|
return cb.getNotifierName(); |
39 |
|
} |
40 |
|
|
41 |
public void reset() { |
public void reset() { |
42 |
cb.reset(); |
cb.reset(); |