public class ClientMain extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONSOLE_WIDTH |
| Constructor and Description |
|---|
ClientMain() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMenuNote(String note)
This method allows ClientCommands to insert a small note to be displayed after the command has been executed.
|
boolean |
executePromptCommand(String[] args) |
Map<String,ClientCommand> |
getCommands() |
jline.ConsoleReader |
getConsoleReader() |
int |
getConsoleWidth() |
String |
getHost() |
String |
getLanguage() |
String |
getPass() |
int |
getPort() |
PrintWriter |
getPrintWriter() |
Recorder |
getRecorder() |
RemoteClient |
getRemoteClient() |
ScriptEngine |
getScriptEngine() |
org.rhq.core.domain.auth.Subject |
getSubject() |
String |
getTransport() |
String |
getUsefulErrorMessage(ScriptException e) |
String |
getUser() |
String |
getUserInput(String prompt) |
boolean |
isInteractiveMode() |
boolean |
loggedIn()
Indicates whether the 'Subject', used for all authenticated actions, is currently logged in.
|
static void |
main(String[] args) |
String[] |
parseCommandLine(String cmdLine)
Given a command line, this will parse each argument and return the argument array.
|
void |
setHost(String host) |
void |
setPass(String pass) |
void |
setPort(int port) |
void |
setPrintWriter(PrintWriter writer) |
void |
setRecorder(Recorder recorder) |
void |
setRemoteClient(RemoteClient remoteClient) |
void |
setSubject(org.rhq.core.domain.auth.Subject subject) |
void |
setTransport(String transport) |
void |
setUser(String user) |
public static final int DEFAULT_CONSOLE_WIDTH
public static void main(String[] args)
public jline.ConsoleReader getConsoleReader()
public boolean loggedIn()
public boolean executePromptCommand(String[] args) throws Exception
Exceptionpublic String[] parseCommandLine(String cmdLine)
cmdLine - the command linepublic RemoteClient getRemoteClient()
public void setRemoteClient(RemoteClient remoteClient)
public org.rhq.core.domain.auth.Subject getSubject()
public void setSubject(org.rhq.core.domain.auth.Subject subject)
public String getTransport()
public void setTransport(String transport)
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public String getUser()
public void setUser(String user)
public String getPass()
public void setPass(String pass)
public PrintWriter getPrintWriter()
public void setPrintWriter(PrintWriter writer)
public String getLanguage()
public int getConsoleWidth()
public ScriptEngine getScriptEngine()
public String getUsefulErrorMessage(ScriptException e)
public Map<String,ClientCommand> getCommands()
public void addMenuNote(String note)
note - the note to be displayed, e.g. "There were errors retrieving some data from the server objects. See
System Admin."public boolean isInteractiveMode()
public Recorder getRecorder()
public void setRecorder(Recorder recorder)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.