public class SenderPromptCommand extends Object implements AgentPromptCommand
client command sender. This
allows you to manually tell the sender to start sending commands or stop sending commands even if auto-discovery is
enabled and wants to do the opposite. Note that if auto-discovery is enabled (this includes server polling as well)
the sender will probably be set back to its original state when the JON Server's state is auto-detected. This means
that even if this command is used to start or stop the sender, when auto-discovery detects the server is down it will
stop the sender again - if the server comes up, it will start the sender again.| Constructor and Description |
|---|
SenderPromptCommand() |
| 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.
|
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 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.