|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for Data Fetchers whose job is to obtain data from various sources and bring it into the Query Engine. Once inside the Query Engine, the data is indexed and ready to be used for querying.
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 into which the fetcher imports data. |
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 |
getName()
Gets the service name. |
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 from which the fetcher retrieves data. |
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 from which to extract data. |
void |
setStoreContent(boolean storeContent)
Specifies whether the document content data is to be stored inside the Query Engine. |
void |
setUseCurrentDate(boolean useCurrentDate)
Specifies whether the current date is to be used when filling in the creation date Engine field. |
void |
setUseDocidAsRef(boolean useDocidAsRef)
Specifies whether the document ID is to be used as the document reference. |
Method Detail |
public void setFetcherName(String fetcherName)
fetcherName
- Name for the Data Fetcher.public void setDescription(String description)
description
- Description for the Data Fetcher.public void setHost(String host)
host
- Name or host IP address to use.public void setQueryPort(int queryPort)
queryPort
- Query port to use.public void setIndexPort(int indexPort)
indexPort
- Index port to use.public void setSourceRepository(String sourceRepository)
sourceRepository
- Name of the source repository.public void setDestRepository(String destRepository)
destRepository
- the name of the destination repositorypublic void setUseDocidAsRef(boolean useDocidAsRef)
useDocidAsRef
- Flag that specifies the action.
True = use document ID is used as document reference;
false = use document's URL is used for reference. By default, the
document's URL is used for reference.public void setUseCurrentDate(boolean useCurrentDate)
useCurrentDate
- Flag that specifies the action.
True = use the current date; false = use the
date supplied by the source repository; by default, the date supplied
by the source repository is used.public void setStoreContent(boolean storeContent)
storeContent
- Flag that specifies the action.
True = content is stored in the Query Engine; false = content is not
stored in the Query Engine.public void setProcessMeta(boolean processMeta)
processMeta
- Flag that specifies the action.
True = standard document metadata is imported and indexed.public void setProcessExtnMeta(boolean processExtnMeta)
processExtnMeta
- Flag that specifies the action.
True = document extension metadata is imported and indexed.public void setProcessContent(boolean processContent)
processContent
- if true, the document content data is imported and
indexedpublic void setMultiValueDelim(String multiValueDelim)
multiValueDelim
- Character or sequence of characters to use
for importing multi-valued extension metadata fields.public void setMaximumDocsInBuffer(int maxDocsInBuffer)
maxDocsInBuffer
- Maximum number of documents per buffer.public void setKillDupsMode(String killDupsMode)
killDupsMode
- Specifier for kill duplicates mode.EbiDataFetcher.getKillDupsMode()
public void setCheckAccess(boolean checkAccess)
checkAccess
- Flag that specifies the action.
True = perform security filtering.public void setQuery(EbiQuery query)
query
- Query to run. If null, all the data is extracted from
the source repository.public void setQuery(EbiContext context, String query) throws EboUnrecoverableSystemException
context
- Context.query
- Query to run. If null, all the data is extracted from
the source repository.public void setOutputStream(OutputStream out)
out
- Output stream.public void setOutputLineDelim(String delim)
delim
- Delimiter to use.public void setLog(EbiLog log)
log
- the log to usepublic String getName()
public 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 indexEbiDataFetcher.getFirstIndexID()
,
EbiDataFetcher.getLastIndexID()
,
EbiDataFetcher.getStatusMessage(int)
public String getStatusMessage(int status) throws EboUnrecoverableSystemException
status
- the status valueEbiDataFetcher.getIndexerStatus(int)
public int getFirstIndexID()
EbiDataFetcher.getIndexerStatus(int)
,
EbiDataFetcher.getLastIndexID()
public int getLastIndexID()
EbiDataFetcher.getIndexerStatus(int)
,
EbiDataFetcher.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 |