/[projects]/CircuitBreaker/src/dk/thoerup/curcuitbreaker/web/ListCircuitBreakers.java
ViewVC logotype

Diff of /CircuitBreaker/src/dk/thoerup/curcuitbreaker/web/ListCircuitBreakers.java

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

revision 447 by torben, Thu Oct 8 07:07:14 2009 UTC revision 448 by torben, Mon Oct 19 14:04:40 2009 UTC
# Line 22  public class ListCircuitBreakers impleme Line 22  public class ListCircuitBreakers impleme
22                          CircuitBreaker breaker = manager.getCircuitBreaker(breakerName);                          CircuitBreaker breaker = manager.getCircuitBreaker(breakerName);
23                          String color = "white";                          String color = "white";
24                                                    
25                          if (breaker.getStateName().equalsIgnoreCase("open")) {                          if (breaker.isOpen() ) {
26                                  color = "red";                                  color = "red";
27                          } else if (breaker.getStateName().equalsIgnoreCase("Half-open")) {                          } else if (breaker.isClosed() ) {
28                                  color = "yellow";                                  color = "green";
29                          } else { //must be "closed"                          } else {
30                                  color ="green";                                  color ="yellow";
31                          }                          }
32                                                    
33                          String encodedName = breakerName;                          String encodedName = breakerName;

Legend:
Removed from v.447  
changed lines
  Added in v.448

  ViewVC Help
Powered by ViewVC 1.1.20