public abstract class SshAbstractChannel extends Object implements SshChannel
| Modifier and Type | Field and Description |
|---|---|
static int |
CHANNEL_CLOSED |
static int |
CHANNEL_OPEN |
static int |
CHANNEL_UNINITIALIZED |
protected int |
channelid |
protected SshMessageRouter |
manager |
protected SshMessageStore |
ms |
protected int |
state |
| Constructor and Description |
|---|
SshAbstractChannel() |
| Modifier and Type | Method and Description |
|---|---|
int |
getChannelId()
Get the id of this channel.
|
SshMessageRouter |
getMessageRouter()
Returns the message router instance to which this channel belongs.
|
protected SshMessageStore |
getMessageStore() |
protected abstract MessageObserver |
getStickyMessageIds() |
void |
idle() |
protected void |
init(SshMessageRouter manager,
int channelid) |
boolean |
isClosed()
Evaluate whether the channel is closed.
|
protected abstract boolean |
processChannelMessage(SshChannelMessage m) |
void |
waitForOpen()
Wait for a channel to open, be carefull not to call this on a thread that is serving as the connections message pump.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChannelEventListener, getClient, getMaximumLocalPacketLength, getMaximumLocalWindowSize, getMaximumRemotePacketLength, getMaximumRemoteWindowSize, getRemoteWindow, removeChannelEventListener, setAutoConsumeInputclose, getInputStream, getOutputStreampublic static final int CHANNEL_UNINITIALIZED
public static final int CHANNEL_OPEN
public static final int CHANNEL_CLOSED
protected int channelid
protected int state
protected SshMessageRouter manager
protected SshMessageStore ms
protected SshMessageStore getMessageStore() throws SshException
SshExceptionpublic int getChannelId()
SshChannelgetChannelId in interface SshChannelpublic SshMessageRouter getMessageRouter()
SshChannelgetMessageRouter in interface SshChannelprotected void init(SshMessageRouter manager, int channelid)
protected abstract MessageObserver getStickyMessageIds()
public boolean isClosed()
SshChannelisClosed in interface SshChanneltrue if the channel is closed, otherwise falsepublic void waitForOpen()
SshChannelwaitForOpen in interface SshChannelprotected abstract boolean processChannelMessage(SshChannelMessage m) throws SshException
SshExceptionpublic void idle()
Copyright © 2025. All rights reserved.