public class LoginCommand extends Object implements ClientCommand
COMMANDS| Constructor and Description |
|---|
LoginCommand() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(ClientMain client,
String[] args)
Executes the agent prompt command with the given arguments.
|
org.rhq.core.domain.auth.Subject |
execute(ClientMain client,
String username,
String password) |
org.rhq.core.domain.auth.Subject |
execute(ClientMain client,
String username,
String password,
String host,
int port,
String transport) |
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()
ClientCommandgetPromptCommandString in interface ClientCommandpublic boolean execute(ClientMain client, String[] args)
ClientCommandexecute in interface ClientCommandclient - the ClientMain class itselfargs - the arguments passed to the agent on the agent prompttrue if the agent can continue accepting prompt commands; false if the
agent should diepublic org.rhq.core.domain.auth.Subject execute(ClientMain client, String username, String password) throws Exception
Exceptionpublic org.rhq.core.domain.auth.Subject execute(ClientMain client, String username, String password, String host, int port, String transport) throws Exception
Exceptionpublic String getSyntax()
ClientCommandgetSyntax in interface ClientCommandpublic String getHelp()
ClientCommandgetHelp in interface ClientCommandpublic String getDetailedHelp()
ClientCommandgetDetailedHelp in interface ClientCommandCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.