|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.wayback.aggregator.AggregationWorker
public class AggregationWorker
The AggregationWorker
singleton contains the schedule and file
bookkeeping functionality needed in the aggregation of indexes.
The AggregationWorker
has the responsibility of ensuring each
index in the raw index files ends up appearing exactly once in the index
files used by Wayback. If this isn't possible the fallback is to allow
duplicate occurrences of index lines ensuring index lines appears at least
once.
Field Summary | |
---|---|
static java.io.File |
FINAL_INDEX_FILE
The final Wayback index file currently used to intermediate indexes into. |
(package private) static java.io.File |
indexOutputDir
See WaybackSettings.WAYBACK_AGGREGATOR_OUTPUT_DIR. |
static java.io.File |
INTERMEDIATE_INDEX_FILE
The intermediate Wayback index file currently used to merge new indexes into. |
static java.io.File |
TEMP_FILE_INDEX
The Files to store sorted indexes until they have been merge into a intermediate index files. |
(package private) static java.io.File |
tempFinalIndexFile
The file to use for creating temporary final index file, which subsequent are merge into the working final index file. |
(package private) static java.io.File |
tempIntermediateIndexFile
The file to use for creating temporary intermediate index file, which subsequent are merge into the final intermediate index file. |
Method Summary | |
---|---|
void |
cleanup()
Used to clean up a class from within a shutdown hook. |
static AggregationWorker |
getInstance()
Factory method which creates a singleton aggregator and sets it running. |
protected void |
initialize()
Creates the needed working directories. |
protected void |
runAggregation()
Runs the actual aggregation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static java.io.File indexOutputDir
static java.io.File tempIntermediateIndexFile
static java.io.File tempFinalIndexFile
public static final java.io.File TEMP_FILE_INDEX
public static final java.io.File INTERMEDIATE_INDEX_FILE
public static final java.io.File FINAL_INDEX_FILE
Method Detail |
---|
public static AggregationWorker getInstance()
protected void runAggregation()
public void cleanup()
CleanupIF
cleanup
in interface CleanupIF
protected void initialize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |