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

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

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

revision 1291 by torben, Wed Apr 13 01:14:28 2011 UTC revision 1293 by torben, Sat Apr 16 11:11:07 2011 UTC
# Line 108  public class ViewCircuitBreaker implemen Line 108  public class ViewCircuitBreaker implemen
108                          for (int i=0; i<max; i++) {                          for (int i=0; i<max; i++) {
109                                  LoggingCircuitBreaker.LogEntry entry = list.get(i);                                  LoggingCircuitBreaker.LogEntry entry = list.get(i);
110                                  sb.append("<tr><td colspan=\"2\">");                                  sb.append("<tr><td colspan=\"2\">");
111                                  sb.append( formatDate(entry.time) ).append(" : ").append(entry.event);                                                            sb.append( entry.toString() );                          
112                                  sb.append("</td></tr>");                                  sb.append("</td></tr>");
113                          }                          }
114                  }                  }
# Line 123  public class ViewCircuitBreaker implemen Line 123  public class ViewCircuitBreaker implemen
123                          if (breaker instanceof AccountingCircuitBreaker ) {                          if (breaker instanceof AccountingCircuitBreaker ) {
124                                  sb.append( actionBuilder(uri, "resetCounters", breaker.getName())).append("<br>\n");                                      sb.append( actionBuilder(uri, "resetCounters", breaker.getName())).append("<br>\n");    
125                          }                          }
126                            if (breaker instanceof LoggingCircuitBreaker ) {
127                                    sb.append( actionBuilder(uri, "clearLog", breaker.getName())).append("<br>\n");
128                            }
129                  } else {                  } else {
130                          sb.append("<i>the CircuitBreakers can only be viewed</i>");                          sb.append("<i>the CircuitBreakers can only be viewed</i>");
131                  }                  }

Legend:
Removed from v.1291  
changed lines
  Added in v.1293

  ViewVC Help
Powered by ViewVC 1.1.20