use of org.apache.jackrabbit.oak.commons.concurrent.ExecutorCloser in project jackrabbit-oak by apache.
the class AtomicCounterEditorProvider method deactivate.
@Deactivate
public void deactivate() {
ScheduledExecutorService ses = getScheduler();
if (ses == null) {
LOG.debug("No ScheduledExecutorService found");
} else {
LOG.debug("Shutting down ScheduledExecutorService");
new ExecutorCloser(ses).close();
}
}
use of org.apache.jackrabbit.oak.commons.concurrent.ExecutorCloser in project jackrabbit-oak by apache.
the class FileCacheStats method close.
@Override
public void close() {
LOG.info("Cache stats on close [{}]", cacheStats.cacheInfoAsString());
new ExecutorCloser(executor).close();
}
use of org.apache.jackrabbit.oak.commons.concurrent.ExecutorCloser in project jackrabbit-oak by apache.
the class BlobIdTracker method close.
/**
* Closes the tracker and the underlying store.
*
* @throws IOException
*/
@Override
public void close() throws IOException {
store.close();
new ExecutorCloser(scheduler).close();
}
use of org.apache.jackrabbit.oak.commons.concurrent.ExecutorCloser in project jackrabbit-oak by apache.
the class StagingUploader method close.
@Override
public void close() {
LOG.info("Uploads in progress on close [{}]", map.size());
LOG.info("Uploads completed but not cleared from cache [{}]", attic.size());
LOG.info("Staging cache stats on close [{}]", cacheStats.cacheInfoAsString());
new ExecutorCloser(executor).close();
new ExecutorCloser(scheduledExecutor).close();
}
use of org.apache.jackrabbit.oak.commons.concurrent.ExecutorCloser in project jackrabbit-oak by apache.
the class StatisticsProviderFactory method deactivate.
@Deactivate
private void deactivate() throws IOException {
for (ServiceRegistration reg : regs) {
reg.unregister();
}
regs.clear();
if (statisticsProvider instanceof Closeable) {
((Closeable) statisticsProvider).close();
}
new ExecutorCloser(executor).close();
}
Aggregations