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, wait
addChannelEventListener, getClient, getMaximumLocalPacketLength, getMaximumLocalWindowSize, getMaximumRemotePacketLength, getMaximumRemoteWindowSize, getRemoteWindow, removeChannelEventListener, setAutoConsumeInput
close, getInputStream, getOutputStream
public 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
SshException
public int getChannelId()
SshChannel
getChannelId
in interface SshChannel
public SshMessageRouter getMessageRouter()
SshChannel
getMessageRouter
in interface SshChannel
protected void init(SshMessageRouter manager, int channelid)
protected abstract MessageObserver getStickyMessageIds()
public boolean isClosed()
SshChannel
isClosed
in interface SshChannel
true
if the channel is closed, otherwise false
public void waitForOpen()
SshChannel
waitForOpen
in interface SshChannel
protected abstract boolean processChannelMessage(SshChannelMessage m) throws SshException
SshException
public void idle()
Copyright © 2024. All rights reserved.