public final class RestoreDb extends TaskTool
BackUpDb
tool. This will be a process that is intended to run separate from Directory Server and
not internally within the server process (e.g., via the tasks interface).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. |
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)
The main method for
RestoreDb tool. |
static int |
mainRestoreDb(String[] args,
boolean initializeServer,
OutputStream outStream,
OutputStream errStream)
Processes the command-line arguments and invokes the restore process.
|
protected int |
processLocal(boolean initializeServer)
Called when this utility should perform its actions locally in this JVM.
|
addAttribute, addAttributeIfArgumentPresent, checkVersion, cleanup, createArgParser, getDependencyIds, getFailedDependencyAction, getNotifyUponCompletionEmailAddresses, getNotifyUponErrorEmailAddresses, getRecurringDateTime, getStartDateTime, isEmbedded, process, runOffline, validateTaskArgs
askConfirmation, askPort, confirmAction, enableConsoleLoggingIfVerbose, errPrint, errPrintln, errPrintln, errPrintln, errPrintlnSurroundedByBlankLines, errPrintVerboseMessage, flushLogStream, getErrorStream, getErrStream, getInputStream, getOutputStream, isInteractive, isMenuDrivenMode, isPromptingForTrust, isQuiet, isScriptFriendly, isVerbose, logVerboseMessage, pressReturnToContinue, print, println, println, println, println, printlnNoWrap, printlnSurroundedByBlankLines, printNoWrap, printProgressBar, printVerboseMessage, readInput, readInput, readInputAllowEmpty, readLineOfInput, readPassword, readPassword, readPort, readValidatedInput, readValidatedInput, report, run
public static void main(String[] args)
RestoreDb
tool.args
- The command-line arguments provided to this program.public static int mainRestoreDb(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.public void addTaskAttributes(List<RawAttribute> attributes)
TaskScheduleInformation
attributes
for population of the entry that is added to the task
backend.attributes
- that will be added to the task backendpublic String getTaskObjectclass()
TaskScheduleInformation
public Class<?> getTaskClass()
TaskScheduleInformation
protected int processLocal(boolean initializeServer)
TaskTool
processLocal
in class TaskTool
initializeServer
- indicates whether to initialize the directory server in the case of a local actionpublic String getTaskId()
null
otherwise.Copyright 2010-2020 ForgeRock AS.