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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChannelEventListener, 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 idle()
protected abstract boolean processChannelMessage(SshChannelMessage m) throws SshException
SshException
Copyright © 2014. All rights reserved.