315316317318319320321322323324325
ShutdownCoordinator coordinatorService = (ShutdownCoordinator) getService( "hivemind.ShutdownCoordinator", ShutdownCoordinator.class, null); coordinatorService.shutdown(); _shutdown = true; // Shutdown infrastructure items, such as proxies.
350351352353354355356357358359360
ShutdownCoordinator coordinatorService = (ShutdownCoordinator) getService( "hivemind.ShutdownCoordinator", ShutdownCoordinator.class, null); coordinatorService.shutdown(); // TODO: Shoudl this be moved earlier? _shutdown = true;
413414415416417418419420421422423
ShutdownCoordinator coordinatorService = (ShutdownCoordinator) getService("hivemind.ShutdownCoordinator", ShutdownCoordinator.class); coordinatorService.shutdown(); _shutdown = true; // Shutdown infrastructure items, such as proxies.
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\\."); } }