org.openorb.notify

Class ResourceReaper

public class ResourceReaper extends Thread

The ResourceReaper class is responsible for checking the clients objects. If an invocation _non_existent() returns a COMM_FAILURE or OBJECT_NOT_EXIST. It allows PSS database cleaning when a certain amount of events have been processed by the channels.

Author: Olivier Modica

Constructor Summary
ResourceReaper()
Default constructor with the PersistenceHelper object as an argument.
Method Summary
voiddoEventsClean()
This method checks if the events database should be cleaned.
voiddoResourcesClean()
This method checks the clients state by invoking _non_existent() on them.
voidrun()
The run method enables the ResourceReaper to do checkings on a timer basis.

Constructor Detail

ResourceReaper

public ResourceReaper()
Default constructor with the PersistenceHelper object as an argument.

Method Detail

doEventsClean

public void doEventsClean()
This method checks if the events database should be cleaned.

doResourcesClean

public void doResourcesClean()
This method checks the clients state by invoking _non_existent() on them.

run

public void run()
The run method enables the ResourceReaper to do checkings on a timer basis.