|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for Query Engine business delegate.
Fields inherited from interface com.sssw.fw.api.EbiDelegate |
SERVICE_LOCAL,
SERVICE_REMOTE |
Method Summary | |
void |
addRepository(EbiContext context,
String repositoryName)
Adds a new repository to the Query Engine. |
void |
clear()
Clears any parameters set for this object via the setter methods as a convenience for object reuse. |
void |
clearRepository(EbiContext context,
String repositoryName)
Removes all documents from the specified Query Engine repository. |
String |
getApiVersion()
Returns the version descriptor of the Query Engine product API. |
String |
getHost()
Returns the host name or IP address of this Query Engine. |
int |
getIndexerStatus(int indexID)
Returns the status of a specific indexer. |
int |
getIndexPort()
Returns the index port used for this Query Engine. |
String |
getProductName()
Returns the name of the Query Engine product. |
String |
getProductVersion()
Returns the version of the Query Engine product. |
int |
getQueryPort()
Returns the query port used for this Query Engine. |
Collection |
getRepositories(EbiContext context)
Returns the list of names of Query Engine repositories. |
String |
getStatusMessage(int status)
Returns the message for a status or error code. |
long |
getTotalDocs()
Returns the total number of documents indexed in the Query Engine. |
String |
getVendorName()
Returns the name of the Query Engine vendor. |
int |
importFiles(EbiContext context,
String filterDirectory,
String tempDirectory,
String importFileName,
String repository,
String[] fileNames,
boolean storeContents,
boolean setSummaries,
int[] retVals)
Imports the array of files whose names are specified. |
int |
indexBuffer(EbiContext context,
String strBuffer,
String killDupsMode)
Indexes the String buffer containing document data into the Query Engine. |
int |
indexFile(EbiContext context,
String killDupsMode,
String repository,
String importFileName)
Indexes the specified import file into the query engine. |
boolean |
isAlive()
Returns true if the Query Engine is running. |
void |
ping()
Determines the state of the Query Engine and throws an exception if the engine is not running, |
void |
reinitialize(EbiContext context)
Removes all documents from the Query Engine and reinitializes it. |
void |
removeDocuments(EbiContext context,
String[] repositories,
String[] docs,
boolean byID)
Removes the specified documents from the Query Engine. |
void |
removeRepository(EbiContext context,
String repositoryName)
Removes all documents from the specified Query Engine repository and removes the repository itself. |
void |
reset(EbiContext context)
Reloads the configuration settings for the Query Engine and resets it. |
Collection |
runQuery(EbiContext context,
EbiQuery query,
String[] repositories,
boolean returnElements)
Executes the specified query. |
void |
setHost(String host)
Sets the host name or IP address for this Query Engine object. |
void |
setIndexPort(int indexPort)
Sets the index port for this Query Engine object. |
void |
setQualifier(String qualifier)
Sets the qualifier for this Query Engine object, normally invoked by internal methods only. |
void |
setQueryPort(int queryPort)
Sets the query port for this Query Engine object. |
Methods implemented from interface com.sssw.fw.api.EbiDelegate |
getName |
Method Detail |
public void setQualifier(String qualifier)
qualifier
- the contextual qualifierpublic String getVendorName()
public String getProductName() throws EboUnrecoverableSystemException
public String getProductVersion() throws EboUnrecoverableSystemException
public String getApiVersion() throws EboUnrecoverableSystemException
public long getTotalDocs() throws EboUnrecoverableSystemException
public void setHost(String host)
host
- the host name or IP addresspublic void setQueryPort(int queryPort)
queryPort
- the query port to usepublic void setIndexPort(int indexPort)
indexPort
- the index port to usepublic void clear()
public String getHost()
public int getQueryPort()
public int getIndexPort()
public boolean isAlive()
public void ping() throws EboUnrecoverableSystemException
public Collection runQuery(EbiContext context, EbiQuery query, String[] repositories, boolean returnElements) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextquery
- the query to runrepositories
- the set of Query Engine repositories to run the
query against; if not specified, the query is run over all of the
repositoriesreturnElements
- if true, a Collection of EbiQueryResult's is
returned, otherwise a Collection of Map's of document properties
mapped to their valuespublic int indexBuffer(EbiContext context, String strBuffer, String killDupsMode) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextstrBuffer
- the buffer to indexkillDupsMode
- specifies how to deal with duplicates when indexingpublic int importFiles(EbiContext context, String filterDirectory, String tempDirectory, String importFileName, String repository, String[] fileNames, boolean storeContents, boolean setSummaries, int[] retVals) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextfilterDirectory
- the directory where binary document filters are
installedtempDirectory
- the temporary directory, if any, for the importer
to useimportFileName
- the filepath of the output import file; if the
file does not exist, the method attempts to create it, if it exists,
the method will overwrite it with the new outputrepository
- the name of the query engine repository that the
imported files are intended forfileNames
- the filepaths of content files to be importedstoreContents
- if true, contents are stored into the output filesetSummaries
- if true, the import process automatically creates
a summary field for for each document based on the first couple of
sentencesretVals
- an array of status/error codes, one per each of the
files in the fileNames
arrayEbiQueryEngineDelegate.indexFile(EbiContext, String, String, String)
,
EbiQueryEngineDelegate.getStatusMessage(int)
public int indexFile(EbiContext context, String killDupsMode, String repository, String importFileName) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextkillDupsMode
- specifies how to deal with duplicates when indexingrepository
- the name of the query engine repository that the
content in the import file is intended forimportFileName
- the filepath to the import content fileEbiQueryEngineDelegate.importFiles(EbiContext, String, String, String, String, String[], boolean,
boolean, int[])
,
EbiQueryEngineDelegate.getIndexerStatus(int)
public int getIndexerStatus(int indexID) throws EboUnrecoverableSystemException
indexID
- the index IDpublic String getStatusMessage(int status) throws EboUnrecoverableSystemException
status
- the status to get the message forpublic void removeDocuments(EbiContext context, String[] repositories, String[] docs, boolean byID) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextrepositories
- the names of Query Engine repositories to remove
the documents indocs
- the ID's or references/URL's of documents to be removedbyID
- if true, 'docs' is assumed to be an array of document ID's,
otherwise an array of document referencespublic Collection getRepositories(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic void addRepository(EbiContext context, String repositoryName) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextrepositoryName
- the name of the new repositorypublic void removeRepository(EbiContext context, String repositoryName) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextrepositoryName
- the repository namepublic void clearRepository(EbiContext context, String repositoryName) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextrepositoryName
- the repository namepublic void reinitialize(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic void reset(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- context
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |