public class SshCLIConnection extends Object implements CLIConnection
| Modifier and Type | Field and Description |
|---|---|
protected com.jcraft.jsch.ChannelShell |
channel |
protected InputStream |
inputStream |
protected OutputStream |
outputStream |
protected com.jcraft.jsch.Session |
session |
| Constructor and Description |
|---|
SshCLIConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(Map<String,Object> params)
Establishes a session connection to a network host and creates and stores
session parameters.
|
void |
disconnect()
Disconnects the session to the host.
|
InputStream |
inputStream() |
OutputStream |
outputStream() |
protected com.jcraft.jsch.ChannelShell channel
protected com.jcraft.jsch.Session session
protected InputStream inputStream
protected OutputStream outputStream
public void connect(Map<String,Object> params) throws IOException
CLIConnectionconnect in interface CLIConnectionparams - Parameters used to connect connection to the hostIOException - if any IOException when
communication with the NE.public InputStream inputStream()
inputStream in interface CLIConnectionpublic OutputStream outputStream()
outputStream in interface CLIConnectionpublic void disconnect()
throws IOException
CLIConnectiondisconnect in interface CLIConnectionIOException - if any IOException when
communication with the hostCopyright © 2016 iTransformers Labs. All rights reserved.