Package jadex.platform.service.cli
Class RemoteCliShell
- java.lang.Object
- 
- jadex.platform.service.cli.ACliShell
- 
- jadex.platform.service.cli.RemoteCliShell
 
 
- 
 public class RemoteCliShell extends ACliShell A remote shell is backed by an internal client service to which the commands are forwarded.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalCliServicecliserThe client service used to delegate commands to.- 
Fields inherited from class jadex.platform.service.cli.ACliShellsessionid, workingdir
 
- 
 - 
Constructor SummaryConstructors Constructor Description RemoteCliShell(IInternalCliService cliser, Tuple2<java.lang.String,java.lang.Integer> sessionid)Create a new remote shell.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>addAllCommandsFromClassPath()Add all commands from classpath.IFuture<java.lang.Void>addCommand(ICliCommand cmd)Add a command.voidaddSubshell(ACliShell subshell)Add a subshell.IFuture<java.lang.String>executeCommand(java.lang.String line)Execute a command line command and get back the results.java.util.Map<java.lang.String,ICliCommand>getCommands()Get the commands.IFuture<java.lang.String>internalGetShellPrompt()Get the complete prompt (internal method).IFuture<java.lang.Boolean>removeSubshell()Remove a subshell.- 
Methods inherited from class jadex.platform.service.cli.ACliShellgetSessionId, getShellPrompt, getWorkingDir, setWorkingDir
 
- 
 
- 
- 
- 
Field Detail- 
cliserprotected IInternalCliService cliser The client service used to delegate commands to.
 
- 
 - 
Constructor Detail- 
RemoteCliShellpublic RemoteCliShell(IInternalCliService cliser, Tuple2<java.lang.String,java.lang.Integer> sessionid) Create a new remote shell.
 
- 
 - 
Method Detail- 
executeCommandpublic IFuture<java.lang.String> executeCommand(java.lang.String line) Description copied from class:ACliShellExecute a command line command and get back the results.- Specified by:
- executeCommandin class- ACliShell
- Returns:
- The result of the command.
 
 - 
internalGetShellPromptpublic IFuture<java.lang.String> internalGetShellPrompt() Get the complete prompt (internal method). Calls subshells getPrompt().- Specified by:
- internalGetShellPromptin class- ACliShell
- Returns:
- the complete prompt;
 
 - 
addAllCommandsFromClassPathpublic IFuture<java.lang.Void> addAllCommandsFromClassPath() Add all commands from classpath.- Specified by:
- addAllCommandsFromClassPathin class- ACliShell
- Parameters:
- cl- The classloader to use.
 
 - 
addCommandpublic IFuture<java.lang.Void> addCommand(ICliCommand cmd) Add a command.- Specified by:
- addCommandin class- ACliShell
- Parameters:
- cmd- The command.
 
 - 
removeSubshellpublic IFuture<java.lang.Boolean> removeSubshell() Remove a subshell.- Specified by:
- removeSubshellin class- ACliShell
 
 - 
getCommandspublic java.util.Map<java.lang.String,ICliCommand> getCommands() Get the commands.- Specified by:
- getCommandsin class- ACliShell
- Returns:
- The commands.
 
 - 
addSubshellpublic void addSubshell(ACliShell subshell) Add a subshell.- Specified by:
- addSubshellin class- ACliShell
 
 
- 
 
-