synchronized public void pause() { if (registryMaintainer != null) { log.fine("Pausing registry maintenance"); runPendingExecutions(true); registryMaintainer.stop(); registryMaintainer = null; } }
synchronized public void shutdown() { log.fine("Shutting down registry..."); if (registryMaintainer != null) registryMaintainer.stop(); // Final cleanup run to flush out pending executions which might // not have been caught by the maintainer before it stopped log.finest("Executing final pending operations on shutdown: " + pendingExecutions.size()); runPendingExecutions(false); for (RegistryListener listener : registryListeners) { listener.beforeShutdown(this); } RegistryItem<URI, Resource>[] resources = resourceItems.toArray(new RegistryItem[resourceItems.size()]); for (RegistryItem<URI, Resource> resourceItem : resources) { resourceItem.getItem().shutdown(); } remoteItems.shutdown(); localItems.shutdown(); for (RegistryListener listener : registryListeners) { listener.afterShutdown(); } }
synchronized public void pause() { if (registryMaintainer != null) { log.fine("Pausing registry maintenance"); runPendingExecutions(true); registryMaintainer.stop(); registryMaintainer = null; } }
synchronized public void shutdown() { log.fine("Shutting down registry..."); if (registryMaintainer != null) registryMaintainer.stop(); // Final cleanup run to flush out pending executions which might // not have been caught by the maintainer before it stopped log.finest("Executing final pending operations on shutdown: " + pendingExecutions.size()); runPendingExecutions(false); for (RegistryListener listener : registryListeners) { listener.beforeShutdown(this); } RegistryItem<URI, Resource>[] resources = resourceItems.toArray(new RegistryItem[resourceItems.size()]); for (RegistryItem<URI, Resource> resourceItem : resources) { resourceItem.getItem().shutdown(); } remoteItems.shutdown(); localItems.shutdown(); for (RegistryListener listener : registryListeners) { listener.afterShutdown(); } }
synchronized public void pause() { if (registryMaintainer != null) { log.fine("Pausing registry maintenance"); runPendingExecutions(true); registryMaintainer.stop(); registryMaintainer = null; } }
synchronized public void shutdown() { log.fine("Shutting down registry..."); if (registryMaintainer != null) registryMaintainer.stop(); // Final cleanup run to flush out pending executions which might // not have been caught by the maintainer before it stopped log.finest("Executing final pending operations on shutdown: " + pendingExecutions.size()); runPendingExecutions(false); for (RegistryListener listener : registryListeners) { listener.beforeShutdown(this); } RegistryItem<URI, Resource>[] resources = resourceItems.toArray(new RegistryItem[resourceItems.size()]); for (RegistryItem<URI, Resource> resourceItem : resources) { resourceItem.getItem().shutdown(); } remoteItems.shutdown(); localItems.shutdown(); for (RegistryListener listener : registryListeners) { listener.afterShutdown(); } }