31 |
try { |
try { |
32 |
String s = (String) cb.invoke(new TestInvocation("http://rafiki/test")); |
String s = (String) cb.invoke(new TestInvocation("http://rafiki/test")); |
33 |
response.getWriter().print(s); |
response.getWriter().print(s); |
34 |
} catch (Throwable e) { |
} catch (Exception e) { |
35 |
logger.warning( e.getMessage() ); |
logger.warning( e.getMessage() ); |
36 |
response.sendError(500); |
response.sendError(500); |
37 |
return; |
return; |
104 |
public void reset() { |
public void reset() { |
105 |
synchronized(this) { |
synchronized(this) { |
106 |
if (currentState != closed) { // TODO: Is this conditional necessary ?? |
if (currentState != closed) { // TODO: Is this conditional necessary ?? |
107 |
|
closed.resetFailureCount(); |
108 |
currentState = closed; |
currentState = closed; |
109 |
notifier.sendNotification(name, Notifier.Event.BreakerReset); |
notifier.sendNotification(name, Notifier.Event.BreakerReset); |
110 |
} |
} |