public class CclCommandTerminal extends Object
JSchSshTerminal to facilitate accessing CCL, authenticating, executing
commands, and logging.| Modifier and Type | Field and Description |
|---|---|
static String |
CCL_ABORT_PATTERN
A regex for the string that is output when CCL aborts.
|
static String |
CCL_VIEWER_PATTERN
A regex for the header row in CCL's results viewer.
|
| Constructor and Description |
|---|
CclCommandTerminal(com.cerner.ccl.j4ccl.TerminalProperties terminalProperties,
OutputStreamConfiguration streamConfiguration)
Create a CCL command proxy out of the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
executeCommands(JSchSshTerminal terminal,
List<String> commands,
boolean authenticate)
Launches a CCL session, authenticated if authentication is specified, executes a provided list of CCL commands
and exits the CCL session.
|
com.cerner.ccl.j4ccl.TerminalProperties |
getTerminalProperties()
Retrieves the TerminalProperties object currently in effect for this CclCommandTerminal.
|
public static final String CCL_VIEWER_PATTERN
public static final String CCL_ABORT_PATTERN
public CclCommandTerminal(com.cerner.ccl.j4ccl.TerminalProperties terminalProperties,
OutputStreamConfiguration streamConfiguration)
terminalProperties - The TerminalProperties to apply to this terminal.streamConfiguration - The configured location to which output should be written.public void executeCommands(JSchSshTerminal terminal, List<String> commands, boolean authenticate) throws SshException
terminal - A JSchSshTerminal to be used to interact with the remote server.commands - A Collection of String objects representing the commands to be run.authenticate - A boolean flag indicating whether or not to authenticate the CCL sessionSshException - If any errors occur during sessionCommandsthe execution of the commands.SshExceptionpublic com.cerner.ccl.j4ccl.TerminalProperties getTerminalProperties()
Copyright © 2019. All rights reserved.