public interface SshListener
SshConnectedEvent
SshDisconnectedEvent
SshDataReceivedEvent
In addition to implementing this interface your application should register
itself as an EventListener which may look somewhat like this:public class Application ... implements SshListener { ... public ... initMethod(...) { Ssh ssh = new Ssh(hostname,username,password); ssh.addSshListener(this); } ... }
Modifier and Type | Method and Description |
---|---|
void |
connected(SshConnectedEvent event)
Invoked when SSH connection is established.
|
void |
dataReceived(SshDataReceivedEvent event)
Invoked when data is received from SSH server.
|
void |
disconnected(SshDisconnectedEvent event)
Invoked when SSH connection is released.
|
void connected(SshConnectedEvent event)
event
- a SshConnectedEventSshConnectedEvent
void disconnected(SshDisconnectedEvent event)
event
- a SshDisconnectedEventSshDisconnectedEvent
void dataReceived(SshDataReceivedEvent event)
event
- a SshDataReceivedEventCopyright © JSCAPE LLC. 1999-2021. All Rights Reserved