public interface ChannelListener extends EventListener
Modifier and Type | Method and Description |
---|---|
void |
channelClosed(Channel channel)
Called to inform about a channel being closed.
|
void |
channelInitialized(Channel channel)
Called to inform about initial setup of a channel via the
Channel.init(org.apache.sshd.common.session.ConnectionService, org.apache.sshd.common.session.Session, int)
method. |
void |
channelOpenFailure(Channel channel,
Throwable reason)
Called to inform about the failure to open a channel
|
void |
channelOpenSuccess(Channel channel)
Called to inform about a channel being successfully opened for a
session.
|
void channelInitialized(Channel channel)
Channel.init(org.apache.sshd.common.session.ConnectionService, org.apache.sshd.common.session.Session, int)
method. Note: this method is guaranteed to be called
before either of the channelOpenSuccess(Channel)
or
channelOpenFailure(Channel, Throwable)
will be calledchannel
- The initialized Channel
void channelOpenSuccess(Channel channel)
channel
- The newly opened Channel
void channelOpenFailure(Channel channel, Throwable reason)
channel
- The failed Channel
reason
- The Throwable
reason - Note: if the
channelOpenSuccess(Channel)
notification throws an exception
it will cause this method to be invokedvoid channelClosed(Channel channel)
channelOpenSuccess(Channel)
or
channelOpenFailure(Channel, Throwable)
have been calledchannel
- The referenced Channel
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.