/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/web/ActionCommand.java
ViewVC logotype

Diff of /miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/web/ActionCommand.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

CircuitBreaker/src/dk/thoerup/curcuitbreaker/web/ActionCommand.java revision 417 by torben, Thu Oct 8 07:07:14 2009 UTC miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/web/ActionCommand.java revision 2449 by torben, Fri Mar 20 08:58:46 2015 UTC
# Line 1  Line 1 
1  package dk.thoerup.curcuitbreaker.web;  package dk.thoerup.circuitbreaker.web;
2    
3  import java.io.IOException;  import java.io.IOException;
 import java.io.UnsupportedEncodingException;  
4  import java.net.URLEncoder;  import java.net.URLEncoder;
5    
6  import javax.servlet.http.HttpServletRequest;  import javax.servlet.http.HttpServletRequest;
7  import javax.servlet.http.HttpServletResponse;  import javax.servlet.http.HttpServletResponse;
8    
9  import dk.thoerup.curcuitbreaker.AccountingCircuitBreaker;  import dk.thoerup.circuitbreaker.AccountingCircuitBreaker;
10  import dk.thoerup.curcuitbreaker.CircuitBreaker;  import dk.thoerup.circuitbreaker.CircuitBreaker;
11  import dk.thoerup.curcuitbreaker.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                    
# Line 36  public class ActionCommand implements Co Line 36  public class ActionCommand implements Co
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 {          

Legend:
Removed from v.417  
changed lines
  Added in v.2449

  ViewVC Help
Powered by ViewVC 1.1.20