|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objects that implement this interface represent Data Fetchers whose job is to obtain data in various sources and bring it into the Query Engine. Once the data is inside the Query Engine, it is indexed and ready to be used for querying.
Fields inherited from interface com.sssw.fw.api.EbiDelegate |
SERVICE_LOCAL,
SERVICE_REMOTE |
Method Summary | |
void |
clear()
Clears any values set by the caller and resets them to the defaults. |
void |
clearIndexInfo()
Clears out any indexing progress information maintained by the object. |
int |
fetchData(EbiContext context,
boolean writeContentToOutput)
Fetches document data from the source repository into the destination query engine repository. |
String |
getDebugSummary(boolean includeSettings,
boolean includeIndexInfo)
Provides a nicely formatted summary of the fetcher object's current settings and/or internal state information. |
String |
getDescription()
Gets the description of the fetcher. |
String |
getDestRepository()
Gets the name of the destination repository for the fetcher to import the data into |
String |
getFetcherName()
Gets the name of the fetcher. |
int |
getFirstIndexID()
Gets the ID of the first index involved in indexing the documents. |
String |
getHost()
Gets the name (or IP address) of the query engine host |
int |
getIndexerStatus(int indexID)
Gets the status value for a specific index. |
int |
getIndexPort()
Gets the index port of the query engine |
String |
getKillDupsMode()
Gets the "kill duplicates" mode value. |
int |
getLastIndexID()
Gets the ID of the last index involved in indexing the documents. |
int |
getMaximumDocsInBuffer()
Gets the number of documents per indexing buffer. |
String |
getMultiValueDelim()
Gets the delimiter for multi-valued extension metadata fields. |
String |
getOutputLineDelim()
Gets the output line delimiter sequence for the output stream, if any is specified for progress indication messages, e.g. |
OutputStream |
getOutputStream()
Gets the output stream, if any is set into the fetcher object for progress indication messages. |
EbiQuery |
getQuery()
Gets the query that the fetcher is to use when extracting documents from the source repository and importing/indexing them into the query engine. |
int |
getQueryPort()
Gets the query port of the query engine |
String |
getSourceRepository()
Gets the name of the source repository for the fetcher to get the data from |
String |
getStatusMessage(int status)
Gets the error message for a specific operation status code. |
int |
importAndIndex(EbiContext context,
Collection documents,
boolean writeContentToOutput)
Imports and indexes a collection of documents into the destination query engine repository. |
void |
importDocument(EbiContext context,
StringBuffer docBuf,
EbiFrameworkElement document,
boolean writeContentToOutput)
Imports and indexes a single document into the destination query engine repository. |
boolean |
mustCheckAccess()
Tells whether only accessible (securitywise) documents should be extracted from the source repository and imported/indexed into the destination query engine repository. |
boolean |
mustProcessContent()
Tells whether documents' contents are to be indexed into the query engine. |
boolean |
mustProcessExtnMeta()
Tells whether documents' extension metadata field values are to be indexed into the query engine. |
boolean |
mustProcessMeta()
Tells whether documents' standard metadata field values are to be indexed into the query engine. |
boolean |
mustStoreContent()
Tells whether documents' contents are to be stored in the query engine when they are imported/indexed. |
boolean |
mustUseCurrentDate()
Tells whether the current date/time should be used for the value of the "date" property for documents indexed into the query engine. |
boolean |
mustUseDocidAsRef()
Tells whether the fetcher must use the document ID property value as the "reference" to the document in the query engine. |
void |
setCheckAccess(boolean checkAccess)
Specifies whether the fetcher should perform security checking to filter out the documents inaccessible to whoever is running the fetcher. |
void |
setDescription(String description)
Sets the description for this Data Fetcher |
void |
setDestRepository(String destRepository)
Sets the name of the destination repository in the Query Engine |
void |
setFetcherName(String fetcherName)
Sets the name for this Data Fetcher. |
void |
setHost(String host)
Sets the destination Query Engine host to use. |
void |
setIndexPort(int indexPort)
Sets the destination Query Engine index port to use. |
void |
setKillDupsMode(String killDupsMode)
Specifies how to deal with duplicate documents that are already in the Query Engine. |
void |
setLog(EbiLog log)
Specifies which log to use as the fetcher is executing. |
void |
setMaximumDocsInBuffer(int maxDocsInBuffer)
Specifies the maximum number of documents per buffer when importing and indexing. |
void |
setMultiValueDelim(String multiValueDelim)
Specifies the delimiter for importing multi-valued extension metadata fields. |
void |
setOutputLineDelim(String delim)
Specifies the line delimiter for writing feedback messages into the output stream supplied via the 'setOutputStream' method. |
void |
setOutputStream(OutputStream out)
Specifies an output stream for displaying feedback from the Data Fetcher. |
void |
setProcessContent(boolean processContent)
Specifies whether the document content data is to be imported and indexed (recommended). |
void |
setProcessExtnMeta(boolean processExtnMeta)
Specifies whether the document extension metadata is to be imported and indexed (recommended). |
void |
setProcessMeta(boolean processMeta)
Specifies whether the standard document metadata is to be imported and indexed (recommended). |
void |
setQuery(EbiContext context,
String query)
Specifies the query to perform in order to extract document data from the source repository. |
void |
setQuery(EbiQuery query)
Specifies the query to perform in order to extract document data from the source repository. |
void |
setQueryPort(int queryPort)
Sets the destination Query Engine query port to use. |
void |
setSourceRepository(String sourceRepository)
Sets the name of the source repository to extract the data from |
void |
setStoreContent(boolean storeContent)
Specifies whether the document content data is to be stored inside the Query Engine. |
void |
setUseCurrentDate(boolean useCurrentDate)
Specifies if the current date is to be used when filling in the creation date Engine field |
void |
setUseDocidAsRef(boolean useDocidAsRef)
Specifies if the document ID is to be used as document reference. |
Methods implemented from interface com.sssw.fw.api.EbiDelegate |
getName |
Method Detail |
public void setFetcherName(String fetcherName)
fetcherName
- the namepublic void setDescription(String description)
description
- descriptionpublic void setHost(String host)
host
- the name or IP address of the host to usepublic void setQueryPort(int queryPort)
queryPort
- the query port to usepublic void setIndexPort(int indexPort)
indexPort
- the index port to usepublic void setSourceRepository(String sourceRepository)
sourceRepository
- the name of the source repositorypublic void setDestRepository(String destRepository)
destRepository
- the name of the destination repositorypublic void setUseDocidAsRef(boolean useDocidAsRef)
useDocidAsRef
- if true, document ID is used as document reference,
otherwise the document's URL is used for reference; by default, the
document's URL is used for referencepublic void setUseCurrentDate(boolean useCurrentDate)
useCurrentDate
- if true, the current date is used, otherwise the
date supplied by the source repository; by default, the date supplied
by the source repository is usedpublic void setStoreContent(boolean storeContent)
storeContent
- if true, content is stored in the Query Engine,
if false, it is notpublic void setProcessMeta(boolean processMeta)
processMeta
- if true, the document metadata is imported and indexedpublic void setProcessExtnMeta(boolean processExtnMeta)
processExtnMeta
- if true, the document extension metadata is
imported and indexedpublic void setProcessContent(boolean processContent)
processContent
- if true, the document content data is imported and
indexedpublic void setMultiValueDelim(String multiValueDelim)
multiValueDelim
- the character or sequence of characters to use
for importing multi-valued extension metadata fieldspublic void setMaximumDocsInBuffer(int maxDocsInBuffer)
maxDocsInBuffer
- the maximum number of documents per bufferpublic void setKillDupsMode(String killDupsMode)
killDupsMode
- the kill duplicates mode specifierEbiDataFetcherDelegate.getKillDupsMode()
public void setCheckAccess(boolean checkAccess)
checkAccess
- if true, do security filteringpublic void setQuery(EbiQuery query)
query
- the query to run, if null, all the data is extracted from
the source repositorypublic void setQuery(EbiContext context, String query) throws EboUnrecoverableSystemException
context
- contextquery
- the query to run, if null, all the data is extracted from
the source repositorypublic void setOutputStream(OutputStream out)
out
- the output streampublic void setOutputLineDelim(String delim)
delim
- the delimiter to usepublic void setLog(EbiLog log)
log
- the log to usepublic String getFetcherName()
public String getDescription()
public String getHost()
public int getQueryPort()
public int getIndexPort()
public String getSourceRepository()
public String getDestRepository()
public boolean mustUseDocidAsRef()
public boolean mustUseCurrentDate()
public boolean mustStoreContent()
public boolean mustProcessMeta()
public boolean mustProcessExtnMeta()
public boolean mustProcessContent()
public String getMultiValueDelim()
public int getMaximumDocsInBuffer()
public String getKillDupsMode()
public boolean mustCheckAccess()
public EbiQuery getQuery()
public OutputStream getOutputStream()
public String getOutputLineDelim()
" for a JSP. By default, the newline character is used.
public int fetchData(EbiContext context, boolean writeContentToOutput) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextwriteContentToOutput
- tells whether document content is to be
written into the progress indication output stream (if specified) as
the fetcher is executing (may be useful for debugging purposes)public int importAndIndex(EbiContext context, Collection documents, boolean writeContentToOutput) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextdocuments
- the documents to import/indexwriteContentToOutput
- tells whether document content is to be
written into the progress indication output stream (if specified) as
the fetcher is executing (may be useful for debugging purposes)public void importDocument(EbiContext context, StringBuffer docBuf, EbiFrameworkElement document, boolean writeContentToOutput) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextdocBuf
- a string buffer to use for importing/indexing the documentdocument
- the document objectwriteContentToOutput
- tells whether document content is to be
written into the progress indication output stream (if specified) as
the fetcher is executing (may be useful for debugging purposes)EbiDocument
public int getIndexerStatus(int indexID) throws EboUnrecoverableSystemException
indexID
- the ID of the indexEbiDataFetcherDelegate.getFirstIndexID()
,
EbiDataFetcherDelegate.getLastIndexID()
,
EbiDataFetcherDelegate.getStatusMessage(int)
public String getStatusMessage(int status) throws EboUnrecoverableSystemException
status
- the status valueEbiDataFetcherDelegate.getIndexerStatus(int)
public int getFirstIndexID()
EbiDataFetcherDelegate.getIndexerStatus(int)
,
EbiDataFetcherDelegate.getLastIndexID()
public int getLastIndexID()
EbiDataFetcherDelegate.getIndexerStatus(int)
,
EbiDataFetcherDelegate.getFirstIndexID()
public void clearIndexInfo()
public void clear()
public String getDebugSummary(boolean includeSettings, boolean includeIndexInfo)
includeSettings
- include all the fetcher settingsincludeIndexInfo
- include the internal state information on the
indexing process
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |