public class SetupPromptCommand extends Object implements AgentPromptCommand
| Constructor and Description |
|---|
SetupPromptCommand() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(AgentMain agent,
String[] args)
Executes the agent prompt command with the given arguments.
|
String |
getDetailedHelp()
Returns a detailed help message to describe to the user what the command's syntax is and any detailed information
that is useful to the user that wants to use this command.
|
String |
getHelp()
Returns a help summary to describe to the user what the prompt command does and its purpose.
|
String |
getPromptCommandString()
All implementations must indicate what the prompt command is that will trigger its execution.
|
String |
getSyntax()
Returns a one-line usage string to describe the syntax of the command including all optional and required
arguments.
|
void |
performAdvancedSetup(Preferences prefs,
PromptInput in,
PrintWriter out)
This performs the actual setup by executing the setup instructions - it asks for some additional configuration
settings above and beyond the
basic setup
allowing for a more advanced ability to configure the agent. |
void |
performAllSetup(Preferences prefs,
PromptInput in,
PrintWriter out)
This performs the actual setup by executing the setup instructions - it asks for practically all possible
configuration settings allowing for a complete ability to configure the agent.
|
void |
performBasicSetup(Preferences prefs,
PromptInput in,
PrintWriter out)
This performs the actual setup by executing the setup instructions - it only asks for a minimal, basic set of
setup values to get the agent up and running.
|
public String getPromptCommandString()
AgentPromptCommandgetPromptCommandString in interface AgentPromptCommandAgentPromptCommand.getPromptCommandString()public boolean execute(AgentMain agent, String[] args)
AgentPromptCommandexecute in interface AgentPromptCommandagent - the agent itselfargs - the arguments passed to the agent on the agent prompttrue if the agent can continue accepting prompt commands; false if the agent
should dieAgentPromptCommand.execute(AgentMain, String[])public void performBasicSetup(Preferences prefs, PromptInput in, PrintWriter out)
prefs - the agent's configuration preferencesin - the input that the agent uses to get user inputout - the output stream that the agent uses to show messages to the userpublic void performAdvancedSetup(Preferences prefs, PromptInput in, PrintWriter out)
basic setup
allowing for a more advanced ability to configure the agent.prefs - the agent's configuration preferencesin - the input stream that the agent uses to get user inputout - the output stream that the agent uses to show messages to the userpublic void performAllSetup(Preferences prefs, PromptInput in, PrintWriter out)
prefs - the agent's configuration preferencesin - the input that the agent uses to get user inputout - the output stream that the agent uses to show messages to the userpublic String getSyntax()
AgentPromptCommandgetSyntax in interface AgentPromptCommandAgentPromptCommand.getSyntax()public String getHelp()
AgentPromptCommandgetHelp in interface AgentPromptCommandAgentPromptCommand.getHelp()public String getDetailedHelp()
AgentPromptCommandgetDetailedHelp in interface AgentPromptCommandAgentPromptCommand.getDetailedHelp()Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.