com.sleepycat.je.cleaner
Class UtilizationSelector

java.lang.Object
  extended bycom.sleepycat.je.cleaner.UtilizationSelector
All Implemented Interfaces:
FileSelector

class UtilizationSelector
extends Object
implements FileSelector

Selects files for cleaning based on the utilization profile, and handles retries when cleaning cannot be completed.


Constructor Summary
(package private) UtilizationSelector(EnvironmentImpl env, UtilizationProfile profile)
           
 
Method Summary
 FileRetryInfo getFileToClean(Set excludeFiles, boolean aggressive)
          Returns the file selected for cleaning, or null if none should be cleaned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtilizationSelector

UtilizationSelector(EnvironmentImpl env,
                    UtilizationProfile profile)
              throws DatabaseException
Method Detail

getFileToClean

public FileRetryInfo getFileToClean(Set excludeFiles,
                                    boolean aggressive)
                             throws DatabaseException
Description copied from interface: FileSelector
Returns the file selected for cleaning, or null if none should be cleaned.

Specified by:
getFileToClean in interface FileSelector
Throws:
DatabaseException


Copyright 2004 Sleepycat, Inc. All Rights Reserved.