--- CircuitBreaker/src/dk/thoerup/curcuitbreaker/ClosedState.java 2009/10/05 19:44:40 393 +++ CircuitBreaker/src/dk/thoerup/curcuitbreaker/ClosedState.java 2009/10/06 05:22:40 397 @@ -34,4 +34,16 @@ private void resetFailureCount() { failureCount.set(0); } + + public String getName() { + return "Closed"; + } + + public int getFailureCount() { + return failureCount.get(); + } + + public int getThreshold() { + return failureThreshold.get(); + } }