public void run() { if (LOG.isDebugEnabled()) { LOG.debug(getName() + " started."); } PathDeletionContext context = null; while (true) { try { context = queue.take(); // delete the path. if (!deletePath(context)) { LOG.warn("CleanupThread:Unable to delete path " + context.fullPath); } else if (LOG.isDebugEnabled()) { LOG.debug("DELETED " + context.fullPath); } } catch (InterruptedException t) { LOG.warn("Interrupted deletion of " + context.fullPath); return; } catch (Exception e) { LOG.warn("Error deleting path " + context.fullPath + ": " + e); } } } }
public void run() { if (LOG.isDebugEnabled()) { LOG.debug(getName() + " started."); } PathDeletionContext context = null; while (true) { try { context = queue.take(); // delete the path. if (!deletePath(context)) { LOG.warn("CleanupThread:Unable to delete path " + context.fullPath); } else if (LOG.isDebugEnabled()) { LOG.debug("DELETED " + context.fullPath); } } catch (InterruptedException t) { LOG.warn("Interrupted deletion of " + context.fullPath); return; } catch (Exception e) { LOG.warn("Error deleting path " + context.fullPath + ": " + e); } } } }
public void run() { if (LOG.isDebugEnabled()) { LOG.debug(getName() + " started."); } PathDeletionContext context = null; while (true) { try { context = queue.take(); // delete the path. if (!deletePath(context)) { LOG.warn("CleanupThread:Unable to delete path " + context.fullPath); } else if (LOG.isDebugEnabled()) { LOG.debug("DELETED " + context.fullPath); } } catch (InterruptedException t) { LOG.warn("Interrupted deletion of " + context.fullPath); return; } catch (Exception e) { LOG.warn("Error deleting path " + context.fullPath + ": " + e); } } } }
public void run() { if (LOG.isDebugEnabled()) { LOG.debug(getName() + " started."); } PathDeletionContext context = null; while (true) { try { context = queue.take(); // delete the path. if (!deletePath(context)) { LOG.warn("CleanupThread:Unable to delete path " + context.fullPath); } else if (LOG.isDebugEnabled()) { LOG.debug("DELETED " + context.fullPath); } } catch (InterruptedException t) { LOG.warn("Interrupted deletion of " + context.fullPath); return; } catch (Exception e) { LOG.warn("Error deleting path " + context.fullPath + ": " + e); } } } }
public void run() { if (LOG.isDebugEnabled()) { LOG.debug(getName() + " started."); } PathDeletionContext context = null; while (true) { try { context = queue.take(); // delete the path. if (!deletePath(context)) { LOG.warn("CleanupThread:Unable to delete path " + context.fullPath); } else if (LOG.isDebugEnabled()) { LOG.debug("DELETED " + context.fullPath); } } catch (InterruptedException t) { LOG.warn("Interrupted deletion of " + context.fullPath); return; } catch (Exception e) { LOG.warn("Error deleting path " + context.fullPath + ": " + e); } } } }
public void run() { if (LOG.isDebugEnabled()) { LOG.debug(getName() + " started."); } PathDeletionContext context = null; while (true) { try { context = queue.take(); // delete the path. if (!deletePath(context)) { LOG.warn("CleanupThread:Unable to delete path " + context.fullPath); } else if (LOG.isDebugEnabled()) { LOG.debug("DELETED " + context.fullPath); } } catch (InterruptedException t) { LOG.warn("Interrupted deletion of " + context.fullPath); return; } catch (Exception e) { LOG.warn("Error deleting path " + context.fullPath + ": " + e); } } } }
/** * Create a singleton path-clean-up queue. It can be used to delete * paths(directories/files) in a separate thread. This constructor creates a * clean-up thread and also starts it as a daemon. Callers can instantiate one * CleanupQueue per JVM and can use it for deleting paths. Use * {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for * deletion. */ public CleanupQueue() { synchronized (PathCleanupThread.class) { if (cleanupThread == null) { cleanupThread = new PathCleanupThread(); } } }
/** * Create a singleton path-clean-up queue. It can be used to delete * paths(directories/files) in a separate thread. This constructor creates a * clean-up thread and also starts it as a daemon. Callers can instantiate one * CleanupQueue per JVM and can use it for deleting paths. Use * {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for * deletion. */ public CleanupQueue() { synchronized (PathCleanupThread.class) { if (cleanupThread == null) { cleanupThread = new PathCleanupThread(); } } }
/** * Create a singleton path-clean-up queue. It can be used to delete * paths(directories/files) in a separate thread. This constructor creates a * clean-up thread and also starts it as a daemon. Callers can instantiate one * CleanupQueue per JVM and can use it for deleting paths. Use * {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for * deletion. */ public CleanupQueue() { synchronized (PathCleanupThread.class) { if (cleanupThread == null) { cleanupThread = new PathCleanupThread(); } } }
/** * Create a singleton path-clean-up queue. It can be used to delete * paths(directories/files) in a separate thread. This constructor creates a * clean-up thread and also starts it as a daemon. Callers can instantiate one * CleanupQueue per JVM and can use it for deleting paths. Use * {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for * deletion. */ public CleanupQueue() { synchronized (PathCleanupThread.class) { if (cleanupThread == null) { cleanupThread = new PathCleanupThread(); } } }
/** * Create a singleton path-clean-up queue. It can be used to delete * paths(directories/files) in a separate thread. This constructor creates a * clean-up thread and also starts it as a daemon. Callers can instantiate one * CleanupQueue per JVM and can use it for deleting paths. Use * {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for * deletion. */ public CleanupQueue() { synchronized (PathCleanupThread.class) { if (cleanupThread == null) { cleanupThread = new PathCleanupThread(); } } }
/** * Create a singleton path-clean-up queue. It can be used to delete * paths(directories/files) in a separate thread. This constructor creates a * clean-up thread and also starts it as a daemon. Callers can instantiate one * CleanupQueue per JVM and can use it for deleting paths. Use * {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for * deletion. */ public CleanupQueue() { synchronized (PathCleanupThread.class) { if (cleanupThread == null) { cleanupThread = new PathCleanupThread(); } } }
/** * Adds the paths to the queue of paths to be deleted by cleanupThread. */ void addToQueue(PathDeletionContext... contexts) { cleanupThread.addToQueue(contexts); }
/** * Adds the paths to the queue of paths to be deleted by cleanupThread. */ void addToQueue(PathDeletionContext... contexts) { cleanupThread.addToQueue(contexts); }
/** * Adds the paths to the queue of paths to be deleted by cleanupThread. */ void addToQueue(PathDeletionContext... contexts) { cleanupThread.addToQueue(contexts); }
/** * Adds the paths to the queue of paths to be deleted by cleanupThread. */ void addToQueue(PathDeletionContext... contexts) { cleanupThread.addToQueue(contexts); }
/** * Adds the paths to the queue of paths to be deleted by cleanupThread. */ void addToQueue(PathDeletionContext... contexts) { cleanupThread.addToQueue(contexts); }