Remote System Explorer DataStore
Release 1.0

org.eclipse.dstore.core.util
Class DataElementRemover

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.eclipse.dstore.core.model.Handler
          extended byorg.eclipse.dstore.core.util.DataElementRemover
All Implemented Interfaces:
Runnable

public class DataElementRemover
extends Handler


Nested Class Summary
protected  class DataElementRemover.QueueItem
           
 
Field Summary
static int DEFAULT_EXPIRY_TIME
           
static int DEFAULT_INTERVAL_TIME
           
static String EXPIRY_TIME_PROPERTY_NAME
           
static String INTERVAL_TIME_PROPERTY_NAME
           
 
Fields inherited from class org.eclipse.dstore.core.model.Handler
_dataStore, _keepRunning, _waitIncrement
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DataElementRemover(DataStore dataStore)
           
 
Method Summary
static void addToCreatedCount()
           
static void addToGCedCount()
           
 void addToQueueForRemoval(DataElement element)
           
static void addToRemovedCount()
           
 void clearQueue()
           
protected  void getTimes()
           
 void handle()
          Implemented to provide the periodic activity to be done in a handler.
 void run()
          Runs the handler loop in a thread.
 
Methods inherited from class org.eclipse.dstore.core.model.Handler
finish, getWaitTime, isFinished, notifyInput, setDataStore, setWaitTime, waitForInput
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

DEFAULT_EXPIRY_TIME

public static final int DEFAULT_EXPIRY_TIME
See Also:
Constant Field Values

DEFAULT_INTERVAL_TIME

public static final int DEFAULT_INTERVAL_TIME
See Also:
Constant Field Values

EXPIRY_TIME_PROPERTY_NAME

public static final String EXPIRY_TIME_PROPERTY_NAME
See Also:
Constant Field Values

INTERVAL_TIME_PROPERTY_NAME

public static final String INTERVAL_TIME_PROPERTY_NAME
See Also:
Constant Field Values
Constructor Detail

DataElementRemover

public DataElementRemover(DataStore dataStore)
Method Detail

getTimes

protected void getTimes()

addToRemovedCount

public static void addToRemovedCount()

addToCreatedCount

public static void addToCreatedCount()

addToGCedCount

public static void addToGCedCount()

addToQueueForRemoval

public void addToQueueForRemoval(DataElement element)

handle

public void handle()
Description copied from class: Handler
Implemented to provide the periodic activity to be done in a handler. This method is called between wait intervals by the handler thread.

Specified by:
handle in class Handler

clearQueue

public void clearQueue()

run

public void run()
Runs the handler loop in a thread.

Specified by:
run in interface Runnable
Overrides:
run in class Handler

Remote System Explorer DataStore
Release 1.0

Guidelines for using DataStore APIs.