|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.informationsystem.collector.impl.xmlstorage.exist.sweep.Sweeper
public class Sweeper
This class provides some cleanup procedures to use to maintain a consistent content in the XML storage. One of them is a thread, activated at RI startup time, that periodically drops the out to date resources from the storage
Constructor Summary | |
---|---|
Sweeper(long delay,
long resourceExpirationTime)
Initializes a new Sweeper |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sweeper(long delay, long resourceExpirationTime) throws java.lang.Exception
delay
- the sweeper delayresourceExpirationTime
- the time after that a resource is classified as exipired
java.lang.Exception
- if the eXist connection failsMethod Detail |
---|
public 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
XMLStorage.XMLStorageNotAvailableException
public void cleanDeletedResourcesList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |