|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.content.indexer.IndexerRunner
public class IndexerRunner
The IndexRunner provides client side access to the indexing methods of the ISearchManager
. Content nodes can be indexed starting with a path or all nodes of a given type can be indexed. This class can also be used programatically within other client-side code.
IndexRunner can be run from the command line. Portal ships with a command/shell script to facilitate this: see "index_cm_data.cmd" or "index_cm_data.sh". For usage, type: index_cm_data -help
The following configuration parameters may be specified either on the command line, or in a cm_indexer.properties
file. Here is an example that uses clear text for the user/password combination (more secure configuration parameters are noted below):
verbose=true user=weblogic password=weblogic url=t3s://localhost:7002 repository=BEA_ExtendedRepository application=myApplication type=book
Example usages of the index_cm_data script:
Configuration parameters:
path
is set then type
should not be set.type
is specified be sure to also specify the repository
parameter indicating in which repository the type resides. If the type is set then the path should not be set.type
attribute. This repository must be an instance of a WLP extended repository, and indexing must be enabled All configured repositories are listed in the application's content-config.xml file. Here is an example:
<content-store> <name> BEA_ExtendedRepository</name> <description> Portal Test Extended Repository Configuration</description> <class-name> com.bea.content.spi.internal.ExtendedRepositoryImpl</class-name> .... much config info omitted ... <search-indexing-is-enabled>true</search-indexing-is-enabled> </content-store>
"t3s://localhost:7002"
.Communication with the WebLogic server must be done in a secure manner, so either the user/password must be supplied, or the userconfigfile/userkeyfile must be specified. The user must be in the role of either Admin
or PortalSystemAdministrator
. NOTE: Using a clear text user/password as either a command line argument or in the cm_indexer.properties is not secure. For more security, you should use the userconfigfile and userkeyfile options instead. More information on creating user credentials for these files is here .
Field Summary | |
---|---|
static String |
JNDI_FACTORY Defines the JNDI context factory used when loading the Indexer EJB. |
protected static com.bea.content.repo.i18n.IndexerExceptionTextFormatter |
textFormatter |
Constructor Summary | |
---|---|
IndexerRunner() |
Method Summary | |
---|---|
String |
getApplication() Gets the name of the enterprise application. |
String |
getJndiName() Gets the JNDI name used to look up the Indexer EJB. |
String |
getPassword() Gets the password that is used when looking up the Indexer EJB. |
String |
getPath() Gets the node path. |
String |
getRepository() Gets the repository name. |
String |
getType() Gets the type name. |
String |
getUrl() URL used to lookup the Indexer EJB. |
String |
getUser() Gets the user name that is used when looking up the Indexer EJB. |
void |
index() Performs indexing based on the parameters set on this IndexerRunner. |
void |
info(String mesg) Output an info message. |
static void |
main(String[] args) |
void |
setApplication(String application) Sets the name of the enterprise application. |
void |
setPassword(String password) Sets the password that is used when looking up the Indexer EJB. |
void |
setPath(String path) Sets the node path. |
void |
setPingTimeout(int timeout) This one is from command line |
void |
setRepository(String repository) Sets the repository name. |
void |
setType(String type) Sets the type name. |
void |
setUrl(String url) URL used to lookup the Indexer EJB. |
void |
setUser(String user) Sets the user name that is used when looking up the Indexer EJB. |
void |
setUserconfigfile(String userconfig) |
void |
setUserkeyfile(String userkey) |
void |
setVerbose(boolean verbose) |
void |
usage() Print the usage of the application. |
void |
usage(PrintWriter out) Print the usage of the application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final com.bea.content.repo.i18n.IndexerExceptionTextFormatter textFormatter
public static final String JNDI_FACTORY
Constructor Detail |
---|
public IndexerRunner()
Method Detail |
---|
public void setPingTimeout(int timeout)
public void setVerbose(boolean verbose)
public String getUser()
public void setUser(String user)
user
- the user namepublic String getPassword()
public void setPassword(String password)
password
-public void setUserconfigfile(String userconfig)
public void setUserkeyfile(String userkey)
public String getUrl()
public void setUrl(String url)
url
- the URLpublic String getApplication()
public void setApplication(String application)
application
- the enterprise application namepublic String getJndiName()
public String getRepository()
public void setRepository(String repository)
repository
- the repository name.public String getType()
public void setType(String type)
type
- the type name.public String getPath()
public void setPath(String path)
path
- the node path.public void index() throws IndexerRunnerException
IndexerRunnerException
public void usage()
public void usage(PrintWriter out)
public void info(String mesg)
public static void main(String[] args)
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.