|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for storable objects garbage 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 |
set(java.util.Properties properties)
Sets garbage collector configuration properties. |
void |
start()
Starts the collector. |
void |
stop()
Stops the collector. |
Method Detail |
public void start() throws StorageException
StorageException
public void stop() throws StorageException
StorageException
public void set(java.util.Properties properties) throws java.lang.IllegalStateException
isStarted()
method returns false
.
properties
- 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()
true
if collector is running; false
otherwise.public PID getCurrentPID() throws StorageException
StorageException
public int getCurrentCycle()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |