public interface CliApplication extends ProgressNotifier, Runnable
| Modifier and Type | Method and Description | 
|---|---|
UserData | 
createUserData(Launcher launcher)
Creates a set of user data from command line arguments and installation
 status. 
 | 
ReturnCode | 
getReturnCode()
Gets the return code to return to the console. 
 | 
ApplicationException | 
getRunError()
Gets any exception that happened while this application was running. 
 | 
UserData | 
getUserData()
Gets the user data this application will use when running. 
 | 
void | 
setProgressMessageFormatter(ProgressMessageFormatter formatter)
Sets the formatter that will be used to format messages. 
 | 
void | 
setUserData(UserData userData)
Sets the user data this application will use when running. 
 | 
addProgressUpdateListener, notifyListeners, removeProgressUpdateListenerUserData createUserData(Launcher launcher) throws UserDataException, ApplicationException, com.forgerock.opendj.cli.ClientException
launcher - that launched this applicationUserDataException - if something is wrong with the data provided by the userApplicationException - if there is an application specific problemcom.forgerock.opendj.cli.ClientException - If an error occurs when creating the data.UserData getUserData()
void setUserData(UserData userData)
userData - UserData to use when runningvoid setProgressMessageFormatter(ProgressMessageFormatter formatter)
formatter - ProgressMessageFormatter used to format messagesApplicationException getRunError()
ReturnCode getReturnCode()
getRunError will be used.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.