com.sleepycat.je.cleaner
Class RotationSelector

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

class RotationSelector
extends Object
implements FileSelector

A file selector that rotates through all files that can be cleaned, starting with the first/oldest file available. It moves forward in age sequence, and wraps back to the first file when a non-cleanable file is encountered.


Constructor Summary
(package private) RotationSelector(EnvironmentImpl env)
          Creates a rotation file selector.
 
Method Summary
 FileRetryInfo getFileToClean(Set excludeFiles, boolean aggressive)
          Gets the next file in rotation to be cleaned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotationSelector

RotationSelector(EnvironmentImpl env)
Creates a rotation file selector.

Method Detail

getFileToClean

public FileRetryInfo getFileToClean(Set excludeFiles,
                                    boolean aggressive)
Gets the next file in rotation to be cleaned. If endFileProcessing was not called on the last cycle, the same file will be returned again.

Specified by:
getFileToClean in interface FileSelector


Copyright 2004 Sleepycat, Inc. All Rights Reserved.