SSH Factory

com.jscape.inet.ssh
Class SshTaskFailedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jscape.inet.ssh.SshTaskFailedEvent
All Implemented Interfaces:
java.io.Serializable

public class SshTaskFailedEvent
extends java.util.EventObject

Fired when a SshTask has failed to complete

See Also:
SshTask, Serialized Form

Constructor Summary
SshTaskFailedEvent(java.lang.Object source, SshTask task, java.lang.Exception exception)
          Creates a new instance of SshTaskFailedEvent.
 
Method Summary
 java.lang.Exception getException()
          Gets the exception that caused the SshTask to fail.
 SshTask getTask()
          Gets the SshTask that has failed.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SshTaskFailedEvent

public SshTaskFailedEvent(java.lang.Object source,
                          SshTask task,
                          java.lang.Exception exception)
Creates a new instance of SshTaskFailedEvent.

Parameters:
source - the source of the event
task - the SshTask that has failed
exception - the source of this exception
See Also:
SshTask
Method Detail

getTask

public SshTask getTask()
Gets the SshTask that has failed.

Returns:
a SshTask

getException

public java.lang.Exception getException()
Gets the exception that caused the SshTask to fail.

Returns:
the exception

SSH Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved