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 |
} |
} |
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 |
} |
} |