Package org.forgerock.opendj.setup.model
Interface SetupConsole
-
public interface SetupConsole
Can be used to consume messages issued bySetup
process.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
handleError(String errorMessage)
Handles error.void
handleError(LocalizableMessage errorMessage)
Handles error.default void
handleInfo(String message)
Handles an information message issued during setup.void
handleInfo(LocalizableMessage localizableMessage)
Handles an information message issued during setup.void
handleStartTask(LocalizableMessage task)
Handles task start.void
println()
Prints a blank line.void
successEndTask()
Handles end of task.
-
-
-
Method Detail
-
println
void println()
Prints a blank line.
-
handleInfo
default void handleInfo(String message)
Handles an information message issued during setup.- Parameters:
message
- The information message. If the message can be localized,handleInfo(LocalizableMessage)
should be used instead.
-
handleInfo
void handleInfo(LocalizableMessage localizableMessage)
Handles an information message issued during setup.- Parameters:
localizableMessage
- The information localized message
-
handleStartTask
void handleStartTask(LocalizableMessage task)
Handles task start.- Parameters:
task
- The task description
-
successEndTask
void successEndTask()
Handles end of task.
-
handleError
default void handleError(String errorMessage)
Handles error.If this method is called while a task is running it means that the task has failed.
- Parameters:
errorMessage
- The error message. If the message can be localized,handleInfo(LocalizableMessage)
should be used instead.
-
handleError
void handleError(LocalizableMessage errorMessage)
Handles error.If this method is called while a task is running it means that the task has failed.
- Parameters:
errorMessage
- The error localized message
-
-