414415416417418419420421422423424
ShutdownCoordinator coordinatorService = (ShutdownCoordinator) getService("hivemind.ShutdownCoordinator", ShutdownCoordinator.class); coordinatorService.shutdown(); _shutdown = true; // Shutdown infrastructure items, such as proxies.
360361362363364365366367368369370
ShutdownCoordinator coordinatorService = (ShutdownCoordinator) getService( "hivemind.ShutdownCoordinator", ShutdownCoordinator.class, null); coordinatorService.shutdown(); // TODO: Should this be moved earlier? _shutdown = true;
366367368369370371372373374375376
ShutdownCoordinator coordinatorService = (ShutdownCoordinator) getService( "hivemind.ShutdownCoordinator", ShutdownCoordinator.class, null); coordinatorService.shutdown(); // TODO: Shoudl this be moved earlier? _shutdown = true;
350351352353354355356357358359360
383384385386387388389390391392393
271272273274275276277278279280281
5253545556575859606162
Fixture f = new Fixture(); c.addRegistryShutdownListener(f); c.shutdown(); assertEquals(true, f.isShutdown()); // For good riddens; test no failure if already down.
5859606162636465666768
assertEquals(true, f.isShutdown()); // For good riddens; test no failure if already down. c.shutdown(); } public void testShutdownCoordinatorService() { Registry r = RegistryBuilder.constructDefaultRegistry();
7475767778798081828384
Fixture f = new Fixture(); c.addRegistryShutdownListener(f); c.shutdown(); assertEquals(true, f.isShutdown()); } public void testShutdownFailure() throws Exception
93949596979899100101102103
} }); interceptLogging(); c.shutdown(); assertLoggedMessagePattern("Unable to shutdown .*: I'm just not in the mood\\."); } }