org.exoplatform.services.jcr.aws.storage.sdb
Class StorageCleaner

java.lang.Object
  extended by java.lang.Thread
      extended by org.exoplatform.services.jcr.aws.storage.sdb.StorageCleaner
All Implemented Interfaces:
java.lang.Runnable

public class StorageCleaner
extends java.lang.Thread

Created by The eXo Platform SAS.
It's a temporary solution... IMO. it will be better to delete after each commit in independent thread. Comming soon...
The cleaner will runs with random (around container constant) time to prevent prbs in cluster environment.
Date: 15.10.2008

Version:
$Id: StorageCleaner.java 35185 2009-08-07 14:15:56Z pnedonosko $
Author:
Peter Nedonosko

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected static org.apache.commons.logging.Log LOG
          Container logger.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void cancel()
          Signal that cleanup should be canceled.
 void run()
          
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Container logger.

Method Detail

run

public void run()

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

cancel

public void cancel()
Signal that cleanup should be canceled.



Copyright © 2012 eXo Platform SAS. All Rights Reserved.