view src/org/dancres/blitz/entry/SearchOffer.java @ 35:6f68e94c1fb8 default tip

Add CondensedStats monitoring utility, equivalent to vmstat
author Dominic Cleal <dominic-cleal@cdo2.com>
date Thu, 05 Aug 2010 11:07:25 +0100
parents 3dc0c5604566
children
line wrap: on
line source

package org.dancres.blitz.entry;

import org.dancres.blitz.mangler.MangledEntry;

/**
   Whenever the filesystem locates an Entry suitable for a specified search,
   it offers it to the specified SearchVisitor using an instance of this
   object. <P>

   The SearchVisitor can use the available information to determine whether
   the Entry is a suitable match from it's perspective which includes doing
   a deep match, checking expiry, txn locks etc.  If the SearchVisitor is
   happy, it accepts the offer and saves the OpInfo into the log and commits
   or aborts later. <P>
 */
public interface SearchOffer {
    public MangledEntry getEntry();

    public OpInfo getInfo();
}