public class RebuildIndex extends TaskTool
| Constructor and Description |
|---|
RebuildIndex() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTaskAttributes(List<RawAttribute> attributes)
Adds utility specific attributes to
attributes for
population of the entry that is added to the task backend. |
Backend<?> |
getCurrentBackend()
Returns the current backend.
|
RebuildConfig |
getRebuildConfig()
Returns the rebuild configuration.
|
Class<?> |
getTaskClass()
Gets the Class that implements the utility to execute.
|
String |
getTaskId()
Gets an arbitrary task id assigned to this task.
|
String |
getTaskObjectclass()
Gets the objectclass used to represent scheduled instances of this
utility in the task backend.
|
static void |
main(String[] args)
Processes the command-line arguments and invokes the rebuild process.
|
static int |
mainRebuildIndex(String[] args,
boolean initializeServer,
OutputStream outStream,
OutputStream errStream)
Processes the command-line arguments and invokes the rebuild process.
|
protected int |
processLocal(boolean initializeServer,
PrintStream out,
PrintStream err)
Called when this utility should perform its actions locally in this
JVM.
|
int |
rebuildIndexesWithinMultipleBackends(boolean initializeServer,
PrintStream out,
String... args)
This function allow internal use of the rebuild index tools.
|
void |
setCurrentBackend(Backend<?> currentBackend)
Sets the current backend.
|
void |
setRebuildConfig(RebuildConfig rebuildConfig)
Sets the rebuild configuration.
|
checkVersion, createArgParser, getDependencyIds, getFailedDependencyAction, getNotifyUponCompletionEmailAddresses, getNotifyUponErrorEmailAddresses, getRecurringDateTime, getStartDateTime, process, testIfOffline, validateTaskArgspublic RebuildIndex()
public static void main(String[] args)
args - The command-line arguments provided to this program.public static int mainRebuildIndex(String[] args, boolean initializeServer, OutputStream outStream, OutputStream errStream)
args - The command-line arguments provided to this program.initializeServer - Indicates whether to initialize the server.outStream - The output stream to use for standard output, or null if
standard output is not needed.errStream - The output stream to use for standard error, or null if
standard error is not needed.protected int processLocal(boolean initializeServer, PrintStream out, PrintStream err)
processLocal in class TaskToolinitializeServer - indicates whether or not to initialize the
directory server in the case of a local actionout - stream to write messages; may be nullerr - stream to write messages; may be nullpublic int rebuildIndexesWithinMultipleBackends(boolean initializeServer, PrintStream out, String... args)
initializeServer - Indicates whether to initialize the server.out - The print stream which is used to display errors/debug lines.
Usually redirected into a logger if the tool is used as external.args - The arguments used to launch the rebuild index process.public String getTaskId()
null otherwise.public void addTaskAttributes(List<RawAttribute> attributes)
attributes for
population of the entry that is added to the task backend.attributes - that will be added to the task backendpublic String getTaskObjectclass()
public Class<?> getTaskClass()
public RebuildConfig getRebuildConfig()
public void setRebuildConfig(RebuildConfig rebuildConfig)
rebuildConfig - The rebuild configuration to set.public Backend<?> getCurrentBackend()
public void setCurrentBackend(Backend<?> currentBackend)
currentBackend - The current backend to set.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.