public class ExtendedCommandContextImpl extends Object
| Constructor and Description |
|---|
ExtendedCommandContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(org.jboss.as.cli.CliEventListener arg0) |
protected void |
addShutdownHook() |
void |
bindClient(org.jboss.as.controller.client.ModelControllerClient arg0) |
org.jboss.dmr.ModelNode |
buildRequest(String arg0) |
protected org.jboss.dmr.ModelNode |
buildRequest(String arg0,
boolean arg1) |
void |
clearScreen() |
void |
connectController() |
void |
connectController(String arg0) |
void |
connectController(String arg0,
int arg1)
Deprecated.
|
void |
disconnectController() |
protected void |
error(String arg0) |
Object |
get(String arg0) |
String |
getArgumentsString() |
org.jboss.as.cli.batch.BatchManager |
getBatchManager() |
org.jboss.as.cli.operation.CommandLineParser |
getCommandLineParser() |
org.jboss.as.cli.CliConfig |
getConfig() |
String |
getControllerHost() |
int |
getControllerPort() |
File |
getCurrentDir() |
org.jboss.as.cli.operation.OperationRequestAddress |
getCurrentNodePath() |
org.jboss.as.cli.CommandLineCompleter |
getDefaultCommandCompleter() |
org.jboss.as.cli.ControllerAddress |
getDefaultControllerAddress() |
String |
getDefaultControllerHost()
Deprecated.
|
int |
getDefaultControllerPort()
Deprecated.
|
int |
getExitCode() |
org.jboss.as.cli.CommandHistory |
getHistory() |
org.jboss.dmr.ModelNode |
getLastResult() |
org.jboss.as.controller.client.ModelControllerClient |
getModelControllerClient() |
org.jboss.as.cli.operation.NodePathFormatter |
getNodePathFormatter() |
org.jboss.as.cli.operation.OperationCandidatesProvider |
getOperationCandidatesProvider() |
org.jboss.as.cli.operation.ParsedCommandLine |
getParsedCommandLine() |
int |
getTerminalHeight() |
int |
getTerminalWidth() |
String |
getVariable(String arg0) |
Collection<String> |
getVariables() |
void |
handle(String arg0) |
void |
handleClose() |
void |
handleSafe(String arg0) |
protected void |
initBasicConsole(InputStream arg0,
OutputStream arg1) |
void |
interact() |
boolean |
isBatchMode() |
boolean |
isDomainMode() |
boolean |
isResolveParameterValues() |
boolean |
isSilent() |
boolean |
isTerminated() |
protected void |
notifyListeners(org.jboss.as.cli.CliEvent arg0) |
void |
printColumns(Collection<String> arg0) |
void |
printLine(String message) |
Object |
remove(String arg0) |
void |
set(String arg0,
Object arg1) |
void |
setCurrentDir(File arg0) |
protected void |
setOutputTarget(String arg0) |
void |
setResolveParameterValues(boolean arg0) |
void |
setSilent(boolean arg0) |
void |
setVariable(String arg0,
String arg1) |
void |
terminateSession() |
org.jboss.as.cli.batch.BatchedCommand |
toBatchedCommand(String arg0) |
public ExtendedCommandContextImpl()
throws org.jboss.as.cli.CliInitializationException
org.jboss.as.cli.CliInitializationExceptionpublic void printLine(String message)
printLine in interface org.jboss.as.cli.CommandContextpublic org.jboss.dmr.ModelNode getLastResult()
protected void addShutdownHook()
protected void initBasicConsole(InputStream arg0, OutputStream arg1) throws org.jboss.as.cli.CliInitializationException
org.jboss.as.cli.CliInitializationExceptionpublic int getExitCode()
getExitCode in interface org.jboss.as.cli.CommandContextpublic boolean isTerminated()
isTerminated in interface org.jboss.as.cli.CommandContextpublic void handle(String arg0) throws org.jboss.as.cli.CommandLineException
handle in interface org.jboss.as.cli.CommandContextorg.jboss.as.cli.CommandLineExceptionpublic void handleSafe(String arg0)
handleSafe in interface org.jboss.as.cli.CommandContextpublic String getArgumentsString()
getArgumentsString in interface org.jboss.as.cli.CommandContextpublic void terminateSession()
terminateSession in interface org.jboss.as.cli.CommandContextprotected void error(String arg0)
public void printColumns(Collection<String> arg0)
printColumns in interface org.jboss.as.cli.CommandContextpublic void set(String arg0, Object arg1)
set in interface org.jboss.as.cli.CommandContextpublic Object remove(String arg0)
remove in interface org.jboss.as.cli.CommandContextpublic org.jboss.as.controller.client.ModelControllerClient getModelControllerClient()
getModelControllerClient in interface org.jboss.as.cli.CommandContextpublic org.jboss.as.cli.operation.CommandLineParser getCommandLineParser()
getCommandLineParser in interface org.jboss.as.cli.CommandContextpublic org.jboss.as.cli.operation.OperationRequestAddress getCurrentNodePath()
getCurrentNodePath in interface org.jboss.as.cli.CommandContextpublic org.jboss.as.cli.operation.NodePathFormatter getNodePathFormatter()
getNodePathFormatter in interface org.jboss.as.cli.CommandContextpublic org.jboss.as.cli.operation.OperationCandidatesProvider getOperationCandidatesProvider()
getOperationCandidatesProvider in interface org.jboss.as.cli.CommandContextpublic void connectController()
throws org.jboss.as.cli.CommandLineException
connectController in interface org.jboss.as.cli.CommandContextorg.jboss.as.cli.CommandLineExceptionpublic void connectController(String arg0) throws org.jboss.as.cli.CommandLineException
connectController in interface org.jboss.as.cli.CommandContextorg.jboss.as.cli.CommandLineException@Deprecated public void connectController(String arg0, int arg1) throws org.jboss.as.cli.CommandLineException
connectController in interface org.jboss.as.cli.CommandContextorg.jboss.as.cli.CommandLineExceptionpublic void bindClient(org.jboss.as.controller.client.ModelControllerClient arg0)
bindClient in interface org.jboss.as.cli.CommandContextpublic File getCurrentDir()
getCurrentDir in interface org.jboss.as.cli.CommandContextpublic void setCurrentDir(File arg0)
setCurrentDir in interface org.jboss.as.cli.CommandContextpublic void disconnectController()
disconnectController in interface org.jboss.as.cli.CommandContext@Deprecated public String getDefaultControllerHost()
getDefaultControllerHost in interface org.jboss.as.cli.CommandContext@Deprecated public int getDefaultControllerPort()
getDefaultControllerPort in interface org.jboss.as.cli.CommandContextpublic org.jboss.as.cli.ControllerAddress getDefaultControllerAddress()
getDefaultControllerAddress in interface org.jboss.as.cli.CommandContextpublic String getControllerHost()
getControllerHost in interface org.jboss.as.cli.CommandContextpublic int getControllerPort()
getControllerPort in interface org.jboss.as.cli.CommandContextpublic void clearScreen()
clearScreen in interface org.jboss.as.cli.CommandContextpublic org.jboss.as.cli.CommandHistory getHistory()
getHistory in interface org.jboss.as.cli.CommandContextpublic boolean isBatchMode()
isBatchMode in interface org.jboss.as.cli.CommandContextpublic org.jboss.as.cli.batch.BatchManager getBatchManager()
getBatchManager in interface org.jboss.as.cli.CommandContextpublic org.jboss.as.cli.batch.BatchedCommand toBatchedCommand(String arg0) throws org.jboss.as.cli.CommandFormatException
toBatchedCommand in interface org.jboss.as.cli.CommandContextorg.jboss.as.cli.CommandFormatExceptionpublic org.jboss.dmr.ModelNode buildRequest(String arg0) throws org.jboss.as.cli.CommandFormatException
buildRequest in interface org.jboss.as.cli.CommandContextorg.jboss.as.cli.CommandFormatExceptionprotected org.jboss.dmr.ModelNode buildRequest(String arg0, boolean arg1) throws org.jboss.as.cli.CommandFormatException
org.jboss.as.cli.CommandFormatExceptionpublic org.jboss.as.cli.CommandLineCompleter getDefaultCommandCompleter()
getDefaultCommandCompleter in interface org.jboss.as.cli.CommandContextpublic org.jboss.as.cli.operation.ParsedCommandLine getParsedCommandLine()
getParsedCommandLine in interface org.jboss.as.cli.CommandContextpublic boolean isDomainMode()
isDomainMode in interface org.jboss.as.cli.CommandContextpublic void addEventListener(org.jboss.as.cli.CliEventListener arg0)
addEventListener in interface org.jboss.as.cli.CommandContextpublic org.jboss.as.cli.CliConfig getConfig()
getConfig in interface org.jboss.as.cli.CommandContextprotected void setOutputTarget(String arg0)
protected void notifyListeners(org.jboss.as.cli.CliEvent arg0)
public void interact()
interact in interface org.jboss.as.cli.CommandContextpublic boolean isResolveParameterValues()
isResolveParameterValues in interface org.jboss.as.cli.CommandContextpublic void setResolveParameterValues(boolean arg0)
setResolveParameterValues in interface org.jboss.as.cli.CommandContextpublic void handleClose()
handleClose in interface org.jboss.as.cli.impl.ModelControllerClientFactory.ConnectionCloseHandlerpublic boolean isSilent()
isSilent in interface org.jboss.as.cli.CommandContextpublic void setSilent(boolean arg0)
setSilent in interface org.jboss.as.cli.CommandContextpublic int getTerminalWidth()
getTerminalWidth in interface org.jboss.as.cli.CommandContextpublic int getTerminalHeight()
getTerminalHeight in interface org.jboss.as.cli.CommandContextpublic void setVariable(String arg0, String arg1) throws org.jboss.as.cli.CommandLineException
setVariable in interface org.jboss.as.cli.CommandContextorg.jboss.as.cli.CommandLineExceptionpublic String getVariable(String arg0)
getVariable in interface org.jboss.as.cli.CommandContextpublic Collection<String> getVariables()
getVariables in interface org.jboss.as.cli.CommandContextCopyright © 2021. All rights reserved.