1 |
package dk.thoerup.curcuitbreaker.jmx; |
package dk.thoerup.curcuitbreaker.jmx; |
2 |
|
|
3 |
public interface JmxAccountingCircuitBreakerMBean { |
public interface JmxAccountingCircuitBreakerMBean extends JmxCircuitBreakerMBean{ |
4 |
|
|
|
//default section |
|
|
|
|
|
public String getName(); |
|
|
|
|
|
public String getStateName(); |
|
|
|
|
|
public void reset(); |
|
|
|
|
|
public void tripBreaker(); |
|
|
|
|
|
//Accounting section |
|
5 |
|
|
6 |
public int getTripCount(); |
public int getTripCount(); |
7 |
|
|
8 |
public int getBlockCount(); |
public int getBlockCount(); |
9 |
|
|
10 |
public int getFailureCount(); |
public int getTotalFailureCount(); |
11 |
|
|
12 |
|
public int getTotalCallCount(); |
13 |
|
|
14 |
public long getLastReset(); |
public long getLastReset(); |
15 |
|
|