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 |
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) |
void |
init() |
boolean |
isReady() |
byte[] |
readPage(long page,
long itemsPerPage,
boolean descending) |
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
protected Map<String,SearchResult> qSearchResultMap
protected int searchResultNr
protected Heritrix3JobMonitor()
public static Heritrix3JobMonitor getInstance(Long jobId, NASEnvironment environment) throws IOException
IOException
public void init() throws IOException
IOException
public void update() throws IOException
IOException
public void updateCrawlLog(byte[] tmpBuf) throws IOException
IOException
public long getIndexSize()
getIndexSize
in interface Pageable
public long getLastIndexed()
getLastIndexed
in interface Pageable
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
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.