|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.jso.garbage.JSOGarbageCollector
Class for storable objects garbage collector.
| Constructor Summary | |
JSOGarbageCollector(ConnectionPool aPool,
TransactionManager aTxMgr,
StorageController aController)
Constructs the collector. |
|
| Method Summary | |
int |
getCurrentCycle()
Gets current garbage collection cycle. |
PID |
getCurrentPID()
Gets current storage partition's identification. |
boolean |
isStarted()
Indicates if garbage collector is started. |
void |
run()
Runs garbage collection. |
static void |
safellyStop(GarbageCollector collector)
Stops the collector without throwing exceptions. |
void |
set(java.util.Properties properties)
Sets garbage collector configuration properties. |
void |
start()
Starts the collector. |
void |
stop()
Stops the collector. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JSOGarbageCollector(ConnectionPool aPool,
TransactionManager aTxMgr,
StorageController aController)
throws StorageException
| Method Detail |
public void start()
throws StorageException
start in interface GarbageCollectorStorageException
public void stop()
throws StorageException
stop in interface GarbageCollectorStorageException
public void set(java.util.Properties properties)
throws java.lang.IllegalStateException
isStarted() method returns false.
set in interface GarbageCollectorproperties - Properties containing parameters to the collector. The
following properties can be used:
jso.garbage.partition.size: The size of a partition.
Specifies the maximum number of objects a (logical) partition can have.
If not specified the default size of 200 objects is used.jso.garbage.collection.interval: The interval between two
consecutive garbage collections, in minutes. If not specified the
default interval of 10 minutes is used.java.lang.IllegalStateException - If collector has already been started.public boolean isStarted()
isStarted in interface GarbageCollectortrue if collector is running; false
otherwise.public void run()
run in interface java.lang.Runnable
public PID getCurrentPID()
throws StorageException
getCurrentPID in interface GarbageCollectorStorageExceptionpublic int getCurrentCycle()
getCurrentCycle in interface GarbageCollectorpublic static void safellyStop(GarbageCollector collector)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||