|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.client.commands.ScriptCommand
public class ScriptCommand
| Field Summary |
|---|
| Fields inherited from interface org.rhq.enterprise.client.commands.ClientCommand |
|---|
COMMANDS |
| Constructor Summary | |
|---|---|
ScriptCommand()
|
|
| Method Summary | |
|---|---|
boolean |
execute(ClientMain client,
String[] args)
Executes the agent prompt command with the given arguments. |
ScriptContext |
getContext()
|
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. |
ScriptEngine |
getScriptEngine()
|
String |
getSyntax()
Returns a one-line usage string to describe the syntax of the command including all optional and required arguments. |
void |
initClient(ClientMain client)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptCommand()
| Method Detail |
|---|
public ScriptEngine getScriptEngine()
public String getPromptCommandString()
ClientCommand
getPromptCommandString in interface ClientCommand
public boolean execute(ClientMain client,
String[] args)
ClientCommand
execute in interface ClientCommandclient - the ClientMain class itselfargs - the arguments passed to the agent on the agent prompt
true if the agent can continue accepting prompt commands; false if the
agent should diepublic void initClient(ClientMain client)
public String getSyntax()
ClientCommand
getSyntax in interface ClientCommandpublic String getHelp()
ClientCommand
getHelp in interface ClientCommandpublic String getDetailedHelp()
ClientCommand
getDetailedHelp in interface ClientCommandpublic ScriptContext getContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||