public class FileListIndexUpdateCallbackImpl extends Object implements IndexUpdateCallback
| Modifier and Type | Field and Description |
|---|---|
protected org.codelibs.fess.crawler.client.CrawlerClientFactory |
crawlerClientFactory |
protected List<String> |
deleteUrlList |
protected IndexUpdateCallback |
indexUpdateCallback |
protected int |
maxDeleteDocumentCacheSize |
protected int |
maxRedirectCount |
| Modifier | Constructor and Description |
|---|---|
protected |
FileListIndexUpdateCallbackImpl(IndexUpdateCallback indexUpdateCallback,
org.codelibs.fess.crawler.client.CrawlerClientFactory crawlerClientFactory,
int nThreads) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDocument(Map<String,String> paramMap,
Map<String,Object> dataMap) |
void |
commit() |
protected boolean |
deleteDocument(Map<String,String> paramMap,
Map<String,Object> dataMap) |
protected void |
deleteDocuments() |
long |
getDocumentSize() |
long |
getExecuteTime() |
protected String |
getParamValue(Map<String,String> paramMap,
String key,
String defaultValue) |
protected ExecutorService |
newFixedThreadPool(int nThreads) |
protected String |
processRequest(Map<String,String> paramMap,
Map<String,Object> dataMap,
String url,
org.codelibs.fess.crawler.client.CrawlerClient client) |
void |
setExecutorTerminationTimeout(int executorTerminationTimeout) |
void |
setMaxDeleteDocumentCacheSize(int maxDeleteDocumentCacheSize) |
void |
setMaxRedirectCount(int maxRedirectCount) |
void |
store(Map<String,String> paramMap,
Map<String,Object> dataMap) |
protected IndexUpdateCallback indexUpdateCallback
protected org.codelibs.fess.crawler.client.CrawlerClientFactory crawlerClientFactory
protected int maxDeleteDocumentCacheSize
protected int maxRedirectCount
protected FileListIndexUpdateCallbackImpl(IndexUpdateCallback indexUpdateCallback, org.codelibs.fess.crawler.client.CrawlerClientFactory crawlerClientFactory, int nThreads)
protected ExecutorService newFixedThreadPool(int nThreads)
public void store(Map<String,String> paramMap, Map<String,Object> dataMap)
store in interface IndexUpdateCallbackprotected String getParamValue(Map<String,String> paramMap, String key, String defaultValue)
protected String processRequest(Map<String,String> paramMap, Map<String,Object> dataMap, String url, org.codelibs.fess.crawler.client.CrawlerClient client)
protected boolean deleteDocument(Map<String,String> paramMap, Map<String,Object> dataMap)
public void commit()
commit in interface IndexUpdateCallbackprotected void deleteDocuments()
public long getDocumentSize()
getDocumentSize in interface IndexUpdateCallbackpublic long getExecuteTime()
getExecuteTime in interface IndexUpdateCallbackpublic void setMaxDeleteDocumentCacheSize(int maxDeleteDocumentCacheSize)
public void setMaxRedirectCount(int maxRedirectCount)
public void setExecutorTerminationTimeout(int executorTerminationTimeout)
Copyright © 2009–2017 CodeLibs. All rights reserved.