|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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.
path
- All content nodes starting at this path will be indexed.
The repository is assumed to be the first part of this path. If path
is
set then type
should not be set.
type
- When set all content nodes of this type will be indexed. When
the repository
parameter indicating in which repository the type resides. If the type
is set then the path should not be set.
repository
- The name of the repository. This attribute is used in
conjunction with the type
attribute.
user
- This is the user name used during a JNDI lookup of the Indexer EJB.
Default: ""
. The ejb-jar.xml
descriptor file defines
the user roles allowed to access the Indexer EJB.
By default these roles are Admin
and PortalSystemAdministrator
.
password
- This is the password for the user. Default: ""
.
NOTE: Supply clear password as command line argument is not secure! Use -userconfigfile
and -userkeyfile options instead.
userconfigfile
- File generate from weblogic.Admin contains encrypted username
and password used during a JNDI lookup of the Indexer EJB.
Default: null
.
keyconfigfile
- File generate from weblogic.Admin contains client key for encryption/decryption
Default: null
.
url
- The url used to lookup the Indexer EJB.
Default: "t3://localhost:7001"
.
application
- This is the name of the enterpise application.
If this value is set it will be combined to the jndiName
in the form
{application}.{jndiName} to create an application specific JNDI name used to look up
the Indexer EJB. For example, by default the jndiName
is
"BEA_content.IndexerHome". If the application
was set to "portalApp"
the resulting JNDI name would be "portalApp.BEA_content.IndexerHome". If the
application
is not specified then only the value of jndiName
will be used to find the Indexer EJB.
jndiName
- The JNDI name used to lookup the Indexer EJB. By default it
is "BEA_content.IndexerHome". If the application name has been provided then it will be
combined with the jndiName
in the form of {application}.{jndiName}
.
Field Summary | |
---|---|
static String |
JNDI_FACTORY
Defines the JNDI context factory used when loading the Indexer EJB. |
protected static 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 |
setJndiName(String jndiName)
Sets the JNDI name used to look up the Indexer EJB. |
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 |
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 |
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 IndexerExceptionTextFormatter textFormatter
public static final String JNDI_FACTORY
Constructor Detail |
---|
public IndexerRunner()
Method Detail |
---|
public String getUser()
public void setUser(String user)
user
- the user namepublic String getPassword()
public void setPassword(String password)
password
- 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 void setJndiName(String jndiName)
jndiName
- 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
org.apache.tools.ant.BuildException
IndexerRunnerException
public void usage()
public void usage(PrintWriter out)
public void info(String mesg)
public static void main(String[] args)
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |