com.sshtools.j2ssh
Class SshClient.ActiveChannelEventListener

java.lang.Object
  extended by com.sshtools.j2ssh.connection.ChannelEventAdapter
      extended by com.sshtools.j2ssh.SshClient.ActiveChannelEventListener
All Implemented Interfaces:
ChannelEventListener
Enclosing class:
SshClient

 class SshClient.ActiveChannelEventListener
extends ChannelEventAdapter

Implements the ChannelEventListener interface to provide real time tracking of active channels.


Constructor Summary
SshClient.ActiveChannelEventListener()
           
 
Method Summary
 void onChannelClose(Channel channel)
           Removes the closed channel from the clients active channels list.
 void onChannelOpen(Channel channel)
           Adds the channel to the active channel list.
 
Methods inherited from class com.sshtools.j2ssh.connection.ChannelEventAdapter
onChannelEOF, onDataReceived, onDataSent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshClient.ActiveChannelEventListener

SshClient.ActiveChannelEventListener()
Method Detail

onChannelOpen

public void onChannelOpen(Channel channel)

Adds the channel to the active channel list.

Specified by:
onChannelOpen in interface ChannelEventListener
Overrides:
onChannelOpen in class ChannelEventAdapter
Parameters:
channel - The channel being opened

onChannelClose

public void onChannelClose(Channel channel)

Removes the closed channel from the clients active channels list.

Specified by:
onChannelClose in interface ChannelEventListener
Overrides:
onChannelClose in class ChannelEventAdapter
Parameters:
channel - The channle being closed