public class Heritrix3JobMonitor extends Object implements Pageable
Modifier and Type | Field and Description |
---|---|
boolean |
bActive |
boolean |
bInitialized |
boolean |
bPull |
String |
crawlLogFilePath |
protected NASEnvironment |
environment |
String |
h3HostnamePort |
org.netarchivesuite.heritrix3wrapper.Heritrix3Wrapper |
h3wrapper |
String |
hostUrl |
File |
idxFile |
RandomAccessFile |
idxRaf |
Job |
job |
long |
jobId |
String |
jobname |
org.netarchivesuite.heritrix3wrapper.JobResult |
jobResult |
long |
lastIndexed |
File |
logFile |
RandomAccessFile |
logRaf |
protected Map<String,SearchResult> |
qSearchResultMap |
protected int |
searchResultNr |
long |
totalCachedLines |
Modifier | Constructor and Description |
---|---|
protected |
Heritrix3JobMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(List<File> oldFilesList) |
long |
getIndexSize() |
static Heritrix3JobMonitor |
getInstance(Long jobId,
NASEnvironment environment) |
long |
getLastIndexed() |
SearchResult |
getSearchResult(String q) |
long |
getTotalCachedLines() |
void |
init() |
boolean |
isReady() |
byte[] |
readPage(long page,
long itemsPerPage,
boolean descending) |
void |
setCrawlLogFilePath(String crawlLogFilePath)
Set the file path to the crawl log
|
void |
update() |
void |
updateCrawlLog(byte[] tmpBuf) |
protected NASEnvironment environment
public boolean bActive
public boolean bPull
public boolean bInitialized
public long jobId
public org.netarchivesuite.heritrix3wrapper.Heritrix3Wrapper h3wrapper
public String h3HostnamePort
public org.netarchivesuite.heritrix3wrapper.JobResult jobResult
public String crawlLogFilePath
public RandomAccessFile logRaf
public RandomAccessFile idxRaf
public long lastIndexed
public long totalCachedLines
protected Map<String,SearchResult> qSearchResultMap
protected int searchResultNr
protected Heritrix3JobMonitor()
public static Heritrix3JobMonitor getInstance(Long jobId, NASEnvironment environment) throws IOException
IOException
public void init()
public void update()
public void updateCrawlLog(byte[] tmpBuf)
public long getIndexSize()
getIndexSize
in interface Pageable
public long getLastIndexed()
getLastIndexed
in interface Pageable
public long getTotalCachedLines()
public byte[] readPage(long page, long itemsPerPage, boolean descending) throws IOException
readPage
in interface Pageable
IOException
public boolean isReady()
public SearchResult getSearchResult(String q) throws IOException
IOException
public void setCrawlLogFilePath(String crawlLogFilePath)
crawlLogFilePath
- File path to the crawl logCopyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.