190191192193194195196197198199200
logger.info("Asserting balance"); assertBalance(bean, services.get().size()); logger.info("Shutting down " + name); server.kill(); services.remove(serverURI); } logger.info("All Servers Shutdown");
170171172173174175176177178179180
151152153154155156157158159160161
// Invoke BLUE a few times invoke(bean, 10, "blue"); // Kill BLUE blue.kill(); // Invocations should now fail (and not failover) try { bean.name(); Assert.fail("Server should be down and failover not hooked up");
188189190191192193194195196197198
// Invoke GREEN a few times invoke(bean, 10, "green"); // Kill GREEN green.kill(); // Invocations should now failover to RED invoke(bean, 10, "red"); } }
172173174175176177178179180181182
132133134135136137138139140141142
169170171172173174175176177178179
167168169170171172173174175176177