public class Sweeper
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
Sweeper(long delay,
long resourceExpirationTime)
Initializes a new Sweeper
|
Modifier and Type | Method and Description |
---|---|
void |
cleanDeletedResourcesList()
Deletes the expired resources from the list of deleted resources as
notified by the AF
|
void |
cleanExpiredResources()
Deletes from the backend storage the expired resources
|
static void |
cleanResourceForRI(java.lang.String id)
Removes all the properties documents related to the given Running
Instance ID
|
static void |
cleanRPs()
Deletes the Properties collection from the storage
|
void |
run() |
public Sweeper(long delay, long resourceExpirationTime) throws java.lang.Exception
delay
- the sweeper delayresourceExpirationTime
- the time after that a resource is classified as exipiredjava.lang.Exception
- if the eXist connection failspublic void run()
run
in interface java.lang.Runnable
public void cleanExpiredResources()
public static void cleanResourceForRI(java.lang.String id)
id
- the ID of the Running Instance whose properties documents have
to be removedpublic static void cleanRPs() throws XMLStorage.XMLStorageNotAvailableException
public void cleanDeletedResourcesList()