|
SSH Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Implements methods for capturing events sourced from SshScript class. Typicaly your application will implement this interface to capture the following events :
SshTaskStartEvent
SshTaskEndEvent
SshTaskFailedEvent
In addition to implementing this interface your application should register
itself as an EventListener which may look somewhat like this:
public class Application ... implements SshScriptListener
{
...
public ... initMethod(...)
{
Ssh ssh = new Ssh(hostname,username,password);
SshScript script = new SshScript(ssh);
script.addSshScriptListener(this);
}
...
}
| Method Summary | |
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. |
| Method Detail |
public void taskStart(SshTaskStartEvent event)
event - a SshTaskStartEventSshTaskStartEventpublic void taskEnd(SshTaskEndEvent event)
event - a SshTaskEndEventSshTaskEndEventpublic void taskFailed(SshTaskFailedEvent event)
event - a SshTaskFailedEventSshTaskFailedEventpublic void taskTimeout(SshTaskTimeoutEvent event)
event - a SshTaskTimeoutEventSshTaskTimeoutEvent
|
SSH Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||