/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/CircuitBreakerListener.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/CircuitBreakerListener.java

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

revision 1041 by torben, Mon Jul 5 09:49:53 2010 UTC revision 1042 by torben, Mon Sep 13 17:57:31 2010 UTC
# Line 35  public class CircuitBreakerListener impl Line 35  public class CircuitBreakerListener impl
35                    
36                  AccountingCircuitBreaker banedk = new AccountingCircuitBreaker("banedk", threshold, timeout);                  AccountingCircuitBreaker banedk = new AccountingCircuitBreaker("banedk", threshold, timeout);
37                  banedk.setNotifier( new JavaLogNotifier() );                  banedk.setNotifier( new JavaLogNotifier() );
38                  mgr.addCircuitBreaker( banedk );                                  mgr.addCircuitBreaker( banedk );
39                    
40                    AccountingCircuitBreaker metro = new AccountingCircuitBreaker("metro", threshold, timeout);
41                    metro.setNotifier( new JavaLogNotifier() );
42                    mgr.addCircuitBreaker( metro );
43                                    
44                  JMXWrapper.registerAllCircuitBreakers();                  JMXWrapper.registerAllCircuitBreakers();
45      }      }

Legend:
Removed from v.1041  
changed lines
  Added in v.1042

  ViewVC Help
Powered by ViewVC 1.1.20