9 |
import dk.thoerup.circuitbreaker.AccountingCircuitBreaker; |
import dk.thoerup.circuitbreaker.AccountingCircuitBreaker; |
10 |
import dk.thoerup.circuitbreaker.CircuitBreaker; |
import dk.thoerup.circuitbreaker.CircuitBreaker; |
11 |
import dk.thoerup.circuitbreaker.CircuitBreakerManager; |
import dk.thoerup.circuitbreaker.CircuitBreakerManager; |
12 |
|
import dk.thoerup.circuitbreaker.LoggingCircuitBreaker; |
13 |
|
|
14 |
public class ActionCommand implements Command { |
public class ActionCommand implements Command { |
15 |
|
|
36 |
AccountingCircuitBreaker acb = (AccountingCircuitBreaker) cb; |
AccountingCircuitBreaker acb = (AccountingCircuitBreaker) cb; |
37 |
acb.resetCounters(); |
acb.resetCounters(); |
38 |
} |
} |
39 |
|
|
40 |
|
if (action.equalsIgnoreCase("clearlog") ) { |
41 |
|
LoggingCircuitBreaker lcb = (LoggingCircuitBreaker) cb; |
42 |
|
lcb.clearLog(); |
43 |
|
} |
44 |
} |
} |
45 |
|
|
46 |
try { |
try { |