public interface SshScriptListener
SshTaskStartEvent
SshTaskEndEvent
SshTaskFailedEvent
public class Application ... implements SshScriptListener { ... public ... initMethod(...) { Ssh ssh = new Ssh(hostname,username,password); SshScript script = new SshScript(ssh); script.addSshScriptListener(this); } ... }
Modifier and Type | Method and Description |
---|---|
void |
taskEnd(SshTaskEndEvent event)
Invoked when command for a SshTask completes execution.
|
void |
taskFailed(SshTaskFailedEvent event)
Invoked when command for a SshTask fails execution.
|
void |
taskStart(SshTaskStartEvent event)
Invoked when command for a SshTask begins execution.
|
void |
taskTimeout(SshTaskTimeoutEvent event)
Invoked when a SshTask exceeds timeout waiting for end prompt.
|
void taskStart(SshTaskStartEvent event)
event
- a SshTaskStartEvent
SshTaskStartEvent
void taskEnd(SshTaskEndEvent event)
event
- a SshTaskEndEvent
SshTaskEndEvent
void taskFailed(SshTaskFailedEvent event)
event
- a SshTaskFailedEvent
SshTaskFailedEvent
void taskTimeout(SshTaskTimeoutEvent event)
event
- a SshTaskTimeoutEvent
SshTaskTimeoutEvent
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved