Package org.opends.server.tools
Class ManageTasks
- java.lang.Object
-
- com.forgerock.opendj.cli.ConsoleApplication
-
- org.opends.server.tools.ManageTasks
-
public class ManageTasks extends ConsoleApplication
Tool for getting information and managing tasks in the Directory Server.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.forgerock.opendj.cli.ConsoleApplication
ConsoleApplication.Style
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskClientgetTaskClient()Gets the client that can be used to interact with the task backend.booleanisAdvancedMode()Indicates whether the user has requested advanced mode.booleanisInteractive()Indicates whether the user has requested interactive behavior.booleanisMenuDrivenMode()Indicates whether this console application is running in its menu-driven mode.booleanisQuiet()Indicates whether the user has requested quiet output.booleanisScriptFriendly()Indicates whether the user has requested script-friendly output.booleanisVerbose()Indicates whether the user has requested verbose output.static voidmain(String[] args)The main method for TaskInfo tool.static intmainTaskInfo(String[] args, OutputStream out, OutputStream err, boolean initializeServer)Processes the command-line arguments and invokes the export process.-
Methods inherited from class com.forgerock.opendj.cli.ConsoleApplication
askConfirmation, askPort, confirmAction, errPrint, errPrintln, errPrintln, errPrintln, errPrintVerboseMessage, getErrorStream, getErrStream, getInputStream, getOutputStream, pressReturnToContinue, print, println, println, println, println, printlnNoWrap, printProgressBar, printVerboseMessage, readInput, readInput, readLineOfInput, readPassword, readPassword, readPort, readValidatedInput, readValidatedInput
-
-
-
-
Method Detail
-
main
public static void main(String[] args)
The main method for TaskInfo tool.- Parameters:
args- The command-line arguments provided to this program.
-
mainTaskInfo
public static int mainTaskInfo(String[] args, OutputStream out, OutputStream err, boolean initializeServer)
Processes the command-line arguments and invokes the export process.- Parameters:
args- The command-line arguments provided to thisout- The output stream to use for standard output, ornullif standard output is not needed.err- The output stream to use for standard error, ornullif standard error is not needed.initializeServer- Indicates whether to initialize the server.- Returns:
- int return code
-
isAdvancedMode
public boolean isAdvancedMode()
Description copied from class:ConsoleApplicationIndicates whether the user has requested advanced mode.- Overrides:
isAdvancedModein classConsoleApplication- Returns:
- Returns
trueif the user has requested advanced mode.
-
isInteractive
public boolean isInteractive()
Description copied from class:ConsoleApplicationIndicates whether the user has requested interactive behavior. The default implementation returnstrue.- Overrides:
isInteractivein classConsoleApplication- Returns:
trueif the user has requested interactive behavior.
-
isMenuDrivenMode
public boolean isMenuDrivenMode()
Description copied from class:ConsoleApplicationIndicates whether this console application is running in its menu-driven mode. This can be used to dictate whether output should go to the error stream or not. In addition, it may also dictate whether sub-menus should display a cancel option as well as a quit option.- Overrides:
isMenuDrivenModein classConsoleApplication- Returns:
- Returns
trueif this console application is running in its menu-driven mode.
-
isQuiet
public boolean isQuiet()
Description copied from class:ConsoleApplicationIndicates whether the user has requested quiet output. The default implementation returnsfalse.- Overrides:
isQuietin classConsoleApplication- Returns:
trueif the user has requested quiet output.
-
isScriptFriendly
public boolean isScriptFriendly()
Description copied from class:ConsoleApplicationIndicates whether the user has requested script-friendly output. The default implementation returnsfalse.- Overrides:
isScriptFriendlyin classConsoleApplication- Returns:
trueif the user has requested script-friendly output.
-
isVerbose
public boolean isVerbose()
Description copied from class:ConsoleApplicationIndicates whether the user has requested verbose output. The default implementation returnsfalse.- Overrides:
isVerbosein classConsoleApplication- Returns:
trueif the user has requested verbose output.
-
getTaskClient
public TaskClient getTaskClient()
Gets the client that can be used to interact with the task backend.- Returns:
- TaskClient for interacting with the task backend.
-
-