com.sun.labs.minion.indexer.partition
Class SyncDumper

java.lang.Object
  extended by com.sun.labs.minion.indexer.partition.SyncDumper
All Implemented Interfaces:
Dumper, com.sun.labs.util.props.Component, com.sun.labs.util.props.Configurable

public class SyncDumper
extends java.lang.Object
implements Dumper

A dumper that will dump partitions synchronously.


Field Summary
static java.lang.String PROP_DO_GC
           
static java.lang.String PROP_GC_INTERVAL
           
 
Constructor Summary
SyncDumper()
          Creates a SyncDumper
 
Method Summary
 void dump(Stage s)
          Dumps the given stage synchronously.
 void finish()
          Indicates that we are finished indexing.
 int getQueueLength()
          Gets the length of the queue that this dumper is using to store partitions before dumping them.
 void newProperties(com.sun.labs.util.props.PropertySheet ps)
           
 void setSearchEngine(SearchEngine e)
          Sets the search engine that this dumper will be dumping partitions for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_DO_GC

@ConfigBoolean(defaultValue=true)
public static final java.lang.String PROP_DO_GC
See Also:
Constant Field Values

PROP_GC_INTERVAL

@ConfigInteger(defaultValue=5)
public static final java.lang.String PROP_GC_INTERVAL
See Also:
Constant Field Values
Constructor Detail

SyncDumper

public SyncDumper()
Creates a SyncDumper

Method Detail

setSearchEngine

public void setSearchEngine(SearchEngine e)
Description copied from interface: Dumper
Sets the search engine that this dumper will be dumping partitions for.

Specified by:
setSearchEngine in interface Dumper
Parameters:
e - the engine that this dumper will be used by

getQueueLength

public int getQueueLength()
Description copied from interface: Dumper
Gets the length of the queue that this dumper is using to store partitions before dumping them.

Specified by:
getQueueLength in interface Dumper
Returns:
the queue length.

dump

public void dump(Stage s)
Dumps the given stage synchronously.

Specified by:
dump in interface Dumper
Parameters:
s - a pipeline stage containing data to be dumped.

finish

public void finish()
Description copied from interface: Dumper
Indicates that we are finished indexing. Pending work should be completed.

Specified by:
finish in interface Dumper

newProperties

public void newProperties(com.sun.labs.util.props.PropertySheet ps)
                   throws com.sun.labs.util.props.PropertyException
Specified by:
newProperties in interface com.sun.labs.util.props.Configurable
Throws:
com.sun.labs.util.props.PropertyException