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

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

public class ThrowDumper
extends java.lang.Object
implements Dumper

A dumper that will throw away partitions without doing anything.


Constructor Summary
ThrowDumper()
          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 propertySheet)
           
 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
 

Constructor Detail

ThrowDumper

public ThrowDumper()
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 propertySheet)
                   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