DiskSpaceMonitor
instead.@Deprecated public class LowDiskPauseProcessor extends Processor
Modifier and Type | Field and Description |
---|---|
static Pattern |
AVAILABLE_EXTRACTOR
Deprecated.
|
protected int |
contentSinceCheck
Deprecated.
|
protected CrawlController |
controller
Deprecated.
|
protected List<String> |
monitorMounts
Deprecated.
List of filessystem mounts whose 'available' space should be monitored
via 'df' (if available).
|
protected int |
pauseThresholdKb
Deprecated.
When available space on any monitored mounts falls below this threshold,
the crawl will be paused.
|
protected int |
recheckThresholdKb
Deprecated.
Available space via 'df' is rechecked after every increment of this much
content (uncompressed) is observed.
|
static Pattern |
VALID_DF_OUTPUT
Deprecated.
|
Constructor and Description |
---|
LowDiskPauseProcessor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
CrawlController |
getCrawlController()
Deprecated.
|
List<String> |
getMonitorMounts()
Deprecated.
|
int |
getPauseThresholdKb()
Deprecated.
|
int |
getRecheckThresholdKb()
Deprecated.
|
protected void |
innerProcess(CrawlURI uri)
Deprecated.
Actually performs the process.
|
protected ProcessResult |
innerProcessResult(CrawlURI curi)
Deprecated.
Notes a CrawlURI's content size in its running tally.
|
void |
setCrawlController(CrawlController controller)
Deprecated.
|
void |
setMonitorMounts(List<String> monitorMounts)
Deprecated.
|
void |
setPauseThresholdKb(int pauseThresholdKb)
Deprecated.
|
void |
setRecheckThresholdKb(int recheckThresholdKb)
Deprecated.
|
protected boolean |
shouldProcess(CrawlURI curi)
Deprecated.
Determines whether the given uri should be processed by this
processor.
|
doCheckpoint, finishCheckpoint, flattenVia, fromCheckpointJson, getBeanName, getEnabled, getKeyedProperties, getRecordedSize, getShouldProcessRule, getURICount, hasHttpAuthenticationCredential, innerRejectProcess, isRunning, isSuccess, process, report, setBeanName, setEnabled, setRecoveryCheckpoint, setShouldProcessRule, start, startCheckpoint, stop, toCheckpointJson
protected CrawlController controller
protected List<String> monitorMounts
protected int pauseThresholdKb
protected int recheckThresholdKb
protected int contentSinceCheck
public static final Pattern VALID_DF_OUTPUT
public static final Pattern AVAILABLE_EXTRACTOR
public LowDiskPauseProcessor()
name
- Name of this writer.public CrawlController getCrawlController()
public void setCrawlController(CrawlController controller)
public int getPauseThresholdKb()
public void setPauseThresholdKb(int pauseThresholdKb)
public int getRecheckThresholdKb()
public void setRecheckThresholdKb(int recheckThresholdKb)
protected boolean shouldProcess(CrawlURI curi)
Processor
shouldProcess
in class Processor
curi
- the URI to testprotected void innerProcess(CrawlURI uri)
Processor
#ENABLED
, the
#DECIDE_RULES
and the #shouldProcess(ProcessorURI)
tests.innerProcess
in class Processor
uri
- the URI to processprotected ProcessResult innerProcessResult(CrawlURI curi)
innerProcessResult
in class Processor
curi
- CrawlURI to process.Copyright © 2003-2014 Internet Archive. All Rights Reserved.